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
ibarrera
Posts: 588
Registered: ‎05-29-2009
My Device: 9100
Accepted Solution

Reverse Geocode

I would like to get a group of addresses close to a position. I use Locator.reverseGeocode, which return me Landmark[ ], but this array has always only one element, so I just get one position and I would like to get a few of them. How can I accomplish this? 

Please use plain text.
Developer
ibarrera
Posts: 588
Registered: ‎05-29-2009
My Device: 9100

Re: Reverse Geocode

Is there any logic I could use to get this? or other API like google? I don't find anything about it.
Please use plain text.
Developer
tommy20
Posts: 253
Registered: ‎05-18-2011
My Device: Curve 9300, BB10 Dev Alpha C, Z10

Re: Reverse Geocode

What do you mean by "close"?
--tom
Please use plain text.
Contributor
netsport
Posts: 16
Registered: ‎10-25-2010
My Device: Blackberry Tour 9630
My Carrier: Verizon Wireless

Re: Reverse Geocode

Hi there,

 

One quick suggestion (which you may have already done) would be to write a loop that slightly changes the coordinates on every pass and re-computes the reverse geocode for the new coordinates.

 

Also, please note that the net.rim.device.api.lbs.locator class has been deprecated in the 7.0 API and replaced with the net.rim.device.api.lbs.maps.server.Geocoder and ReverseGeocoder classes.

 

Hope this helps.

 

Cheers,

netsport

Please use plain text.