tommi
tommi

Reputation: 6973

Redirect users to location on google map with coordinates

I've coordinates on a mobile web application. I'm trying to allow the user to click a button so the app will redirect the user to Google Maps with the coordinates.

Can I simply pass in the coordinates as a query string to the google maps url?

Upvotes: 8

Views: 19622

Answers (3)

Ankur vijay
Ankur vijay

Reputation: 1

You can pass parameters in URL with ?q=X,Y

https://www.google.co.uk/maps/dir//51.917168,-0.227051/@51.917168,-0.2292397,17z

Upvotes: 0

Mistalis
Mistalis

Reputation: 18299

You can pass parameters in URL with ?q=X,Y

http://maps.google.com?q=48.8583736,2.2922926

Where 48.8583736 and 2.2922926 are the coordinates (of the Eiffel Tower!).

Upvotes: 2

duncan
duncan

Reputation: 31922

Yes, like http://maps.google.co.uk/maps?q=51.917168,-0.227051

Upvotes: 17

Related Questions