Google Map Requirements

Home Forums Calendar Products Events Calendar PRO Google Map Requirements

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #1526245
    Justin
    Participant

    Hello,

    What data points are required within the venues to get both the google maps to display correctly & to get the location search to work correctly?

    I cannot find any documentation on how this “should” work by default with the PRO version and since I’m unsure of the requirements, I’m not sure if my site isn’t functioning correctly.

    Thank you,
    Justin

    #1526262
    Justin
    Participant

    Additional Info: Currently the only way I can get the Google Map Marker to display in the correct location is to use the Latitude + Longitude data.

    I’m hoping that this isn’t required as I’m unsure how to get (accurate) lat&long data for 4000+ locations.

    #1526584
    Cliff
    Member

    Hi, Justin.

    Please make sure you have your Google Maps API key setup properly (https://theeventscalendar.com/knowledgebase/setting-up-your-google-maps-api-key/)

    After that, you should be able to enter any address in the Venue address fields and it will geocode it (i.e. get the coordinates). Manually inputting the coordinates doesn’t use the lookup.

    If things still aren’t working for you as they should, I’d suggest following these recommended troubleshooting steps for your own site:

    There might be some new updates available. Could you please make sure all your Modern Tribe plugins (and WordPress core) are at their latest versions?

    Once you verify you’re on the latest versions, please test to see if the issue is still happening for you.

    If it is, please follow our Testing for Conflicts Guide (basically switch to Twenty Seventeen theme and deactivate all plugins and custom code other than Modern Tribe plugins) and see if that helps narrow down the cause of this.

    Of course, we always recommend restorable database and file backups as well as performing modifications first on a staging site before modifying anything on your live/production site.

    If it doesn’t, please enable WP_DEBUG and WP_DEBUG_LOG (which will create a file on your server at /wp-content/debug.log if there are any WP_DEBUG messages) and share any debug messages you see while trying to replicate this issue and doing other things on your site relevant to this ticket (such as visiting your site’s home page, events page, single-event pages, and anything else you can think to do).

    Then, please share your System Information (while in Testing for Conflicts Mode) in a Private Reply.

    That will give me a lot of extra information to help troubleshoot this.

    You might also see if you can spot any console errors at your site. (If needed, you may reference our KB article Using Google Chrome Developer Tools.)

    Let us know what you find out.

    Thanks.

    #1526628
    Justin
    Participant

    Hi Cliff,

    I think my initial question was missed.

    What data is needed to get a map marker to fire (assuming everything is working as it should?) ?

    i.e. If I only populate City, State, Country will (should) I get a Map Marker on the Google Map?

    If I only complete the Zip and Country would that fire a map marker?

    How complete must the data be? (I’d rather not have to put in a street address for each “venue”)

    I’m building a calendar app that will have locations all over the USA and Canada. I would like the map markers on the city that the event takes place in. I’m not concerned that the map marker won’t be on the exact location that the event will be held at.

    Is there any documentation regarding that?

    Cheers,
    J

    #1527497
    Cliff
    Member

    Thanks for clarifying.

    The geolocation code comes from /wp-content/plugins/events-calendar-pro/src/Tribe/Geo_Loc.php

    save_venue_geodata() is the method within that file that does the geolocating.

    Missing the Street Address shouldn’t cause it to bypass the geocoding.

    If things still aren’t working, please provide a screenshot of a venue that isn’t working as expected so I can try to test it on my own testing site.

    #1528473
    Justin
    Participant

    Hi Cliff,

    Thanks for your response. I did figure out that due to some confusion with the new Google MAP API’s that my geocoding API wasn’t active. This solved many problems!

    Cheers,
    Justin

    #1529955
    Cliff
    Member

    I’m glad you got it figured out! 🙂

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Google Map Requirements’ is closed to new replies.