iPhone reverse geocoding: give all possible streets/suburbs? -


I know the core space is not always accurate on the iPhone, in that area, possibly catching all the points of the suburbs / streets Is there any way to use space (late / tall) with accuracy?

So instead of using reverse geo-codeing and estimating the way 'the best possible suburban / street, is it possible to create an array of all possible suburbs / streets (or any other format)? Which can be considered?

Thank you!

So, the best way to do this is using the Google Maps API, for example See the following URL:

As you can see, for this pair (latitude, longitude) you have 10 potential placemarks for this coordinate.

Here you can find:

You can see that you get the information in XML, JSON, CSV.

Take a look at the status code, it is important to verify whether

was easy.

= Coordinate Double longitude = coordination. Lame; NSString * urlString = [NSString stringWithFormat: @ "http://maps.google.com/maps/geo?q=%f,%f&output=xml", latitude, longitude]; NSURL * url = [NSURL URLWithString: urlString]; NSString * locationString = [NSString stringWithContentsOfURL: URL encoding: NSUTF8StringEncoding error: zero]; On the locationstring,

is a response from Google Geocoder, now you want information as you can use. First check the status code, and compare the information parse. If you want only the first placemark selected by Google Geocoder, then I would suggest you use the output in CSV, which is easy to work with.

If you have any questions, please let me know!

Cheers,
VFN


Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -