Web Applications Stack Exchange is a question and answer site for power users of web applications. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a form on my web page that includes a postcode. I want to open a new window and display Google Maps with the data from my postcode form. Ideally something like:


Is this something I can do easily?

share|improve this question

migrated from superuser.com Jan 2 '12 at 0:36

This question came from our site for computer enthusiasts and power users.

up vote 2 down vote accepted

Just like the Google search you can enter it in the URL as a query, http://maps.google.co.uk/m?q=pr87uu worked perfectly for me. It's a location near Southport, right?

share|improve this answer
This doesnt work anymore, now you can use google.co.uk/maps?q=PR87UU – Collins Jan 5 '15 at 21:47

If you're looking to display it as a normal maps page, you'd want to use http://google.com/maps?q=SE1+1EB (Postcode format doesn't matter.)

But if you're looking to use the data from the page, you should be using the Google Maps API. Doing it by requesting a user-end URL could potentially end up with your server getting banned from making requests.

share|improve this answer

I wanted to update this one as I taken a look. If you use google map search it actually sends you now to this URL.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.