-1

I'm developing a website in HTML and I would like to surround a postcode with a link so that when a user clicks on the postcode he is sent to google maps searching that postcode. Any advice how can I do that? Thanks!

bdesham
  • 15,430
  • 13
  • 79
  • 123
james156
  • 47
  • 2
  • 9

3 Answers3

4
<a href="https://maps.google.com/maps?q=POSTCODE">POSTCODE</a>

You mean like that?

Dave Moore
  • 1,432
  • 4
  • 12
  • 17
0

See the Map Images API on Google. It's actually pretty straight forward.

Static Maps API

Add static maps, including terrain or satellite maps, to your web page or application. The Static Maps API supports custom styling, high resolution printing and displays, markers, and geometry.

Read the developer documentation.

<img src="http://maps.googleapis.com/maps/api/staticmap?center=-15.800513,-47.91378&zoom=11&size=200x200&sensor=false">

Dev Documentation is here: https://developers.google.com/maps/documentation/staticmaps/index

Community
  • 1
  • 1
Rob Allen
  • 17,381
  • 5
  • 52
  • 70
0

Just put this type of link with q=postcode :

<a href="https://maps.google.fr/maps?q=YourPostCode" target="_blank">Go on maps </a>

example

<a href="https://maps.google.fr/maps?q=83210" target="_blank">Go on maps </a>

Enjoy

Adrien Cerdan
  • 1,005
  • 1
  • 11
  • 21