Support » Plugin: Events Manager - OpenStreetMaps » Function to do the location search programmatically

  • holzhannes


    I am creating EM Events and Locations via a Gravity Forms. This is working, but new locations don’t have GPS longitude and latitude. Is there a function I can call for the location post to do the location search programmatically after creating the location?


    Thank you for this nice plugin and you work!

    • This topic was modified 7 months ago by holzhannes.
Viewing 1 replies (of 1 total)
  • Plugin Author Stonehenge Creations


    The geocoding search (fetching the coordinates of a new location) is done through an Ajax call using jQuery. This search is initiated by clicking the “Search Address” button.
    The script then takes the form field values to perform the API call.

    You would need custom coding to execute this search programmatically…

    OpenCage Data will return its best result, but there is still room for errors, depending on accuracy of the provided address fields. Also, the marker might not be in the exact spot that you would like to be.

    Please note that before you start any custom coding, I am about to release an update with a complete code rewrite so method names etc could be different.

Viewing 1 replies (of 1 total)
  • The topic ‘Function to do the location search programmatically’ is closed to new replies.