You Are Here:

Community: Developer Discussion Boards

#1 Old Format of longitude and latitude - 2007-12-10, 17:44

Join Date: Nov 2007
Posts: 8
asparov
Offline
Registered User
Hi All,

How can i get longitude and latitude in the following format:

longitude - (E|W)dddmm.mmmm
For example - E12129.2186 which means E 121°29.2186’

latitude - (N|S)ddmm.mmmm
For example - N2459.8915 which means N 24°59.8915’

Please advise.
Thanks.
Reply With Quote

#2 Old Re: Format of longitude and latitude - 2007-12-11, 14:10

Join Date: Sep 2004
Posts: 7,953
Location: Tampere, Finland
ltomuta's Avatar
ltomuta
Offline
Forum Nokia Expert
In SDK's LocationRefAppForS60 example application you have

Quote:
Originally Posted by LBSReferenceContainer.cpp
// -----------------------------------------------------------------------------
// CLbsReferenceContainer::GetDegreesString
// Changes latitude or longitude represented as degrees to a string of
// a form +DDD'MM''SS.SSSS
// -----------------------------------------------------------------------------
//

void CLbsReferenceContainer::GetDegreesString(
const TReal64& aDegrees,TBuf<KDegreeLength>& aDegreesString) const
{
...
}
It is trivial to modify that method to return the data in your choice of format.
Reply With Quote

#3 Old Re: Format of longitude and latitude - 2008-08-08, 09:44

Join Date: Sep 2006
Posts: 15
amitjigupta
Offline
Registered User
Hi,
I am getting Lat/Long in below mention format:
Latitude
+61o26'53".239

Longitude
+23o51'16".980

Now, How to get the Place name from the the Lat/Long information??

Thanks,


Amit
Reply With Quote

#4 Old Re: Format of longitude and latitude - 2008-08-09, 08:26

Join Date: Sep 2004
Posts: 7,953
Location: Tampere, Finland
ltomuta's Avatar
ltomuta
Offline
Forum Nokia Expert
Google a bit for "geocoding" and you will find the answer.

There is no S60 API to provide access to such features (or rather there is an API but there is no service provider) so you will have to use external resources to get this service. E.g. check if Google's license allows you to use their Geocoding API from a mobile application.
Reply With Quote

#5 Old Re: Format of longitude and latitude - 2008-10-09, 10:25

Join Date: Oct 2008
Posts: 1
adnan11_pk
Offline
Registered User
Hi,

how can i retrieve longitude and latitude values from my cell phone for searching later on Google Maps?

Any reply or guidance shall be highly appreciated.


Regards,

Adnan..
Reply With Quote

#6 Old Re: Format of longitude and latitude - 2008-10-09, 10:29

Join Date: May 2007
Posts: 540
Location: Poland
nuker85
Offline
Super Contributor
Hello,
try this:

Code:
TRealFormat realFormat;
realFormat.iType = KRealFormatCalculator | KDoNotUseTriads;
realFormat.iWidth = 30;
realFormat.iPlaces = 6;
iLatitude.Zero();
iLongitude.Zero();

iLatitude.AppendNum(aLatitude, realFormat);
iLongitude.AppendNum(aLongitude, realFormat);
Reply With Quote

#7 Old Re: Format of longitude and latitude - 2008-10-09, 10:54

Join Date: Sep 2004
Posts: 7,953
Location: Tampere, Finland
ltomuta's Avatar
ltomuta
Offline
Forum Nokia Expert
Quote:
Originally Posted by adnan11_pk View Post
Hi,

how can i retrieve longitude and latitude values from my cell phone for searching later on Google Maps?

Any reply or guidance shall be highly appreciated.


Regards,

Adnan..
Depending on the targeted phone you might have the option of doing this in Java or Symbian C++. See http://www.forum.nokia.com/lbs for details about available APIs then come back and ask for more technology specific questions (if you still have any ... )
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
Set Exif Gps Info Latitude. shashishaw General Symbian C++ 15 2009-03-24 17:50
retrieve longitute latitude from GPS receiver mytilinick Bluetooth Technology 3 2007-01-08 16:30
9210 City latitude and longitude nickct Symbian Tools & SDKs 1 2002-08-16 11:38

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia 
RDF Facets: qdcZidentifierQSxhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomE2fforumE2fshowthreadE2ephpE3ftE3d162470X qdcZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qdcZtypeQUqfntypeZCommunityContentQ qdcZtypeQUqfntypeZE44iscussionQ qdcZtypeQUqfntypeZE44iscussionContentQ qdcZtypeQUqfntypeZE52esourceQ qdcZtypeQUqfntypeZWebpageQ qdcZtypeQUqmarsZManagedE52esourceQ qdcZtypeQUqwebZInformationE52esourceQ qdcZtypeQUqwebZPageQ qdcZtypeQUqwebZE52esourceQ qdcZtypeQUqrdfsZE52esourceQ qfnZtopicQUqfnTopicZlocationQ qfnZtypeQUqfntypeZCommunityContentQ qfnZtypeQUqfntypeZE44iscussionQ qfnZtypeQUqfntypeZE44iscussionContentQ qfnZtypeQUqfntypeZE52esourceQ qfnZtypeQUqfntypeZWebpageQ qfnZuserE5ftagQSxlocationE2dbasedE2dservicesX qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX qrdfZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qrdfZtypeQUqfntypeZCommunityContentQ qrdfZtypeQUqfntypeZE44iscussionQ qrdfZtypeQUqfntypeZE44iscussionContentQ qrdfZtypeQUqfntypeZE52esourceQ qrdfZtypeQUqfntypeZWebpageQ qrdfZtypeQUqmarsZManagedE52esourceQ qrdfZtypeQUqwebZInformationE52esourceQ qrdfZtypeQUqwebZPageQ qrdfZtypeQUqwebZE52esourceQ qrdfZtypeQUqrdfsZE52esourceQ