4

We have an app which launches google maps to display a location using the following form of link (as per the recommendations on SO):

http://maps.google.co.uk/maps?q=loc:52.03877,-2.3416&z=15

For some reason though, instead of pointing me at that lat/lon, google maps now points me at Worcester instead of Hollybush near Malvern.

Has the google maps API changed? ..and if so, what is the correct way to do what we used to do?

Community
  • 1
  • 1
Jon Cage
  • 36,366
  • 38
  • 137
  • 215
  • Did you try reading the actual docs? https://developers.google.com/maps/web/ – alexmac Apr 08 '14 at 14:56
  • Yes but those all seem to pertain to using the javascript api or embedding a map. I just want to launch google maps via a URL. Is that covered somewhere else or am I just missing something obvious? – Jon Cage Apr 08 '14 at 15:01
  • 2
    This has nothing to do with any maps-API. None of these features have ever been documented officially, so there isn't any correct way. – Dr.Molle Apr 08 '14 at 15:18
  • How about ```google search``` ```q``` query doesnt work anymore – Muhammad Ikhwan Perwira Mar 01 '22 at 07:03

1 Answers1

6

A bit of experimentation suggests the following works (note the addition of the '@' symbol):

http://maps.google.co.uk/maps/place/52.03877,-2.3416/@52.03877,-2.3416,15z/data=!3m1!1e3

I found some more information here on SO.

Community
  • 1
  • 1
Jon Cage
  • 36,366
  • 38
  • 137
  • 215
  • Seems to work without the @ symbol too, but since the eventual redirected-to URL has an @ that seems like the safest course. – AlexChaffee Apr 09 '14 at 23:33
  • One thing I _can't_ seem to work out is how to get google maps to show a satellite view from the URL.. – Jon Cage Apr 10 '14 at 09:30
  • 3
    my guesswork resulted in the following, where 18z is for zoom and 1e3 for satelite (4b1 would be map). wonder what the other parameters in data are for? https://www.google.co.uk/maps/place/52.03877,-2.3416/@52.03877,-2.3416,18z/data=!3m1!1e3! – munomono Apr 20 '14 at 20:22
  • @xordon; that doesn't work with the new iteration of google maps hence my post here.. – Jon Cage Apr 24 '14 at 08:48
  • I was referring to the "t" parameter. That controls the map type. – xordon Apr 26 '14 at 19:02
  • The 't' parameter doesn't seem to work in the new maps either: http://maps.google.co.uk/maps?q=@52.03877,-2.3416&z=15&t=e – Jon Cage Apr 28 '14 at 14:07
  • 1
    Also the &z=15 doesn't do a thing. That is why I posted a variation above where maptype and zoom is working. – munomono Apr 29 '14 at 07:20
  • Agreed munomono; your suggestion is working well - Thanks! :) – Jon Cage Apr 29 '14 at 10:30