apneadiving / Google-Maps-for-Rails

Enables easy Google map + overlays creation in Ruby apps
https://apneadiving.github.io/
MIT License
2.26k stars 382 forks source link

Google Places API #55

Closed patrickberkeley closed 12 years ago

patrickberkeley commented 13 years ago

This gem looks great. Are you planning to add Google Places search, autocomplete, etc?

apneadiving commented 13 years ago

I've not planned to do any of your suggested features.

I let the ticket open: it could inspire a potential contributor to the gem.

gauravtiwari commented 13 years ago

How to implement google map search by using postcode or city? Is it possible to implement in rails application? I am bit new to it so please excuse me.

Thanks

Gaurav

deneuxa commented 13 years ago

please ask your question on stackoverflow and i'll give you more details... for now:

address = Gmaps4rails.geocode(params[:user_address]) @search_lat = address.first[:lat].to_f @search_long = address.first[:lng].to_f @search_address = address.first[:matched_address]

gauravtiwari commented 13 years ago

Many thanks for the reply! I will post on stack overflow and post you the link. Thank you for responding.

Gaurav

deneuxa commented 13 years ago

No problem, have a look to the documentation on the wiki, response was juste here !!

https://github.com/apneadiving/Google-Maps-for-Rails/wiki/Methods

apneadiving commented 12 years ago

Support for google places is coming thanks to @dabooze .

See this thread: https://github.com/apneadiving/Google-Maps-for-Rails/pull/123#issuecomment-3326743