0

On my page I have a number of users showing, each one has a postcode.

Is it possible to somehow show an iframe of that location on Google maps using PHP? I've tried googling and stack overflow for an answer and this is the best I've found only it's a link as opposed to embedding it on the page?

How to convert an address into a Google Maps Link (NOT MAP)

Community
  • 1
  • 1
Liam
  • 9,725
  • 39
  • 111
  • 209

2 Answers2

0

No need for PHP. Just create an iframe pointing to https://maps.google.co.uk/maps?q=POSTCODE

<iframe src="https://maps.google.co.uk/maps?q=SW1A+2AA" width="300" height="250"></iframe>
Tim Fountain
  • 33,093
  • 5
  • 41
  • 69
0

Take a look at this google maps api and consider using php to dynamically build the url.

blearn
  • 1,198
  • 10
  • 17