TRAutocompleteView icon indicating copy to clipboard operation
TRAutocompleteView copied to clipboard

Any way to get latitude/longitude of the suggested places?

Open simonbromberg opened this issue 11 years ago • 3 comments

Currently seems like all it saves is the name of the place. Any way to get more detail like latitude and longitude?

simonbromberg avatar Sep 08 '13 21:09 simonbromberg

Yer, sure, take a loot at src/TRGoogleMapsAutocompleteItemsSource.m you can customize it for your needs as you wish (e.g. save any additional info google returns)

troshko111 avatar Sep 09 '13 12:09 troshko111

Hi Taras, thanks for this awesome library.

I'm using it in a personal project, and i'm also trying to obtain latitude/longitud.

i saw the dictionary returned by Google, however the only data that i see its this :

http://pastebin.com/vqhdQaYb

No latitude/longitud.

I'm doing something wrong?

Thanks.

JMSerruya avatar Nov 16 '13 12:11 JMSerruya

I am not sure, but I think you should not use Google Autocomplete. The better way to add Google Geocoding (reverse Geocoding) for translating your String address to Lat/Lon coordinates.

firuz1844 avatar Feb 25 '14 13:02 firuz1844