mardi 10 mai 2016

Takes user input (address) and add pin/marker to google map

I have a google map that shows my delivery area that I created on google map. I want to have the user enter their address and see if their address is within the delivery area.

Is it possible to add a pin/marker from the users input(ex: Address) to my embedded iframe google map I created. If possible, how would I go about doing it? Would I need to go as far as to using Geocoder gem and create another model to handle and store the user input?

index.html.erb

<iframe src="http://ift.tt/1WZeq18" width="640" height="480"></iframe>

Aucun commentaire:

Enregistrer un commentaire