troshko111 / TRAutocompleteView

Autocomplete view attachable to any UITextField. Ships with sample items source - google places items source. Can be configured to autocomplete from any source. Auto fits all available space, customizable look and feel
Other
191 stars 63 forks source link

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

Open simonbromberg opened 11 years ago

simonbromberg commented 11 years ago

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

troshko111 commented 11 years ago

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)

JMSerruya commented 10 years ago

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.

firuz1844 commented 10 years ago

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.