Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Contributor
pranit03
Posts: 10
Registered: ‎07-18-2012
My Device: BlackBerry 9800
Accepted Solution

get Latitude and Longitude in Blackberry

                   If u did an development for Andriod then there is 1 function for getting latitude and longitude for perticular location called GeoPoint . Is it possible in blackberry where I can placed marker on map get lat and long for perticular location from map, in any OS 5, 6 OR 7.

                  Alternate option is reverse - geocoding I wanted get it from if it is possible for any map google or blackberry

 

Thanks in Advance

Developer
peter_strange
Posts: 19,610
Registered: ‎07-14-2008
My Device: Not Specified

Re: get Latitude and Longitude in Blackberry

To get a location, have a look at the various LocationPicker options.

 

Regarding geolocation, have a look at the Locator class.

Contributor
pranit03
Posts: 10
Registered: ‎07-18-2012
My Device: BlackBerry 9800

Re: get Latitude and Longitude in Blackberry

[ Edited ]

Hi peter had u check andriod functionality ??

Its ok i am using https://developers.google.com/maps/documentation/geocoding/
thanks for ur help :cathappy:

 

I tried to get that, but I didnt get any proper way to do that like andriod one.

Developer
peter_strange
Posts: 19,610
Registered: ‎07-14-2008
My Device: Not Specified

Re: get Latitude and Longitude in Blackberry

No it is defintely not like Android and I am not aware of a way to make it like Android.  The best pre packaged code sample is here:

http://supportforums.blackberry.com/t5/Java-Development/Simple-Location-API/ta-p/1145951

 

Contributor
pranit03
Posts: 10
Registered: ‎07-18-2012
My Device: BlackBerry 9800

Re: get Latitude and Longitude in Blackberry

yes peter, ur right. My requirement was different I want latitude and longitude of different location which will be specified by user in Android we can move marker on map and we can get lat and long of that position which is pointed by pointed by marker.
Developer
peter_strange
Posts: 19,610
Registered: ‎07-14-2008
My Device: Not Specified

Re: get Latitude and Longitude in Blackberry

You can do that actually quite easily.  Have a look at

MapsLocationPicker

Contributor
pranit03
Posts: 10
Registered: ‎07-18-2012
My Device: BlackBerry 9800

Re: get Latitude and Longitude in Blackberry

Thank u peter. This is also helpful, yes this is another way can achive this requirement.