Modifying a google map query string |
[eluser]brian88[/eluser]
When a user submits this form, I want to take "Orlando,+fl" in the query string and replace it with their city and state fields So it would be... maps.google.com/maps?hl=en&q=from:+city,+state+to:+Celina,+OH+45822&ie=UTF-8 Code: <form action='https://maps.google.com/maps?hl=en&q=from:+Orlando,+fl+to:+Celina,+OH+45822&ie=UTF-8' method='get' accept-charset='utf-8'> How can I go about doing this in code igniter? Or is it easier in jQuery?
[eluser]CroNiX[/eluser]
https://developers.google.com/maps/docum...t/tutorial combined with https://developers.google.com/maps/docum...directions
[eluser]brian88[/eluser]
But I want this to open in a new window. Not in my google map api thats on my page currently. Opening in a new page gives the user more room to see everything and edit location
[eluser]CroNiX[/eluser]
Then, yeah, use jQuery/javascript to grab the request and replace 'Orlando' and 'fl' with the values of the city and state fields and send. |
Welcome Guest, Not a member yet? Register Sign In |