How to implement Google Maps on a Web

0

I would like to implement Google Maps on my website but I do not know how to do it exactly. In the profile of the users I have a section where they indicate their address (Province, street, CP, etc.) I would like to be able to show the location of the users (when they allow it). I had thought of doing something like this: The google maps URI is composed of https://www.google.es/maps/place/ let's say it is the base and indicates the place by adding each word separated by a + for example: https://www.google.es/maps/place/rambla+de+catalunya+110 then take all the user's information and separate each word and join it all in a URI so that you can directly access that address.

I know it seems a little shabby but it's the first thing that has occurred to me. If anyone knows any way to make it a little more professional, I would appreciate it. In case it was necessary to know, in my website I use PHP, MYSQL, JS as languages

Any proposal is welcome

    
asked by gmarsi 12.06.2017 в 23:05
source

1 answer

1

You are looking for an embeded map. The URI is similar to the one you were saying and a iframe is used.

  <iframe src="//www.google.com/maps/embed/v1/place?q=Harrods,Brompton%20Rd,%20UK
      &zoom=17
      &key=YOUR_API_KEY">
  </iframe>

For more information: link

    
answered by 13.06.2017 / 00:10
source