Pergunta

I need to generate a link that opens up Google Maps and identifies an area based on a US Zip Code in the query string, preferably like below:

enter image description here

I tried to do it using this query string: https://maps.google.com/?q=us+90120

Appending the zip code at the end. But it doesn't always work. Right now, it's pointing to somewhere near Greenville. What's weird is that if you open up Google Maps and search "us 90210", it does point you to Beverly Hills.

Anything I should add to the query string? Or is the approach all wrong? I just need it to be simple. Any piece of information would be highly appreciated.

Thanks!

Foi útil?

Solução

You made a typo- the link goes to 90120, and therefore, Greenville, but you want to go to 90210, which is Beverly Hills.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top