• Hello everyone !

    This is my first post ever so sorry if I’m not clear enough. I am doing my first wordpress for a friend. He need a map for the visitors to add a location and send it through a form. To do so, the visitor should be able to clic on the map and the address should display in the form. As an exemple, he show me this website

    I don’t know how to do that. I’ve done map with markers but never map that gives you the address when you clic on it. Is there a plugin that would allow me to do that ? Does it have something to do with the API ? Or does it need to be develop from scratch ?
    Thanks in advance for your help !

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    It involves an API, but not the WP API. You need a reverse geo-coding API such as the one provided by Google. (geo-coding involves getting coordinates for a given address, you want to go the other way) There are other similar services, but you also need a map to click on. Google maps JS API is probably the most popular way to do so.
    https://developers.google.com/maps/documentation/javascript/examples/geocoding-reverse

    The only way WP is involved is in providing a container for the Google map. All the mapping functionality is through JavaScript and Google APIs.

Viewing 1 replies (of 1 total)

The topic ‘Create Map Clic and Fill’ is closed to new replies.