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
Developer
Posts: 329
Registered: ‎12-17-2010
My Device: Not Specified
My Carrier: developer

How to get a location name from latitude amd longitude values...

Iam developing an application wherein I get the latitude, longitude in my Blackberry device and post them to a web server. and in a web application I show the location details with the help of google maps. Here I have huge collection of lat long values which i loop it in my jsp and create multiple markers with info windows. Now the problem is that I need to show the location name of the particular latitude and longitude in the Info Window of google maps. Can anyone help me with the google maps script or how can i get the location name from the lat long values in my blackberry phone itself, so that I can post that to my web server.

Highlighted
Developer
Posts: 16,986
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: How to get a location name from latitude amd longitude values...

on BB you can use
http://www.blackberry.com/developers/docs/6.0.0api/net/rim/device/api/lbs/Locator.html#reverseGeocod... int, int)
et al.

on a real server you have plenty of options, like google maps API etc.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Developer
Posts: 329
Registered: ‎12-17-2010
My Device: Not Specified
My Carrier: developer

Re: How to get a location name from latitude amd longitude values...

Thank you  @simon_hain  : Can you provide me any sample code for this  ...

Developer
Posts: 16,986
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: How to get a location name from latitude amd longitude values...

check the developer guide about the location API, there is samplecode for it. but it should be easy enough to use.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter