Google Maps view working randomly

Home Forums Calendar Products Events Calendar PRO Google Maps view working randomly

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1006068
    Yann
    Participant

    I’m building some Events Calendar with Google Maps view here :
    http://rkbe.org/rkbe/
    I don’t understand why the event called “BOURG-LA-REINE” is located somewhere in Africa (?) but when I click on the corresponding Google Map link in the right section ( the listing of the events ), I have the right location displayed on Google Maps.
    (http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=28+Rue+des+Merisiers+STAINS+IDF+93240+France)
    What kind of sorcery is going on here ?
    Thanks a lot for answer.

    #1006275
    Josh
    Participant

    Hey Yann,

    Thanks for reaching out!

    Sorcery is a great way to describe working with the Google Maps API sometimes :).

    The difference is between the way the API uses information for the different views. For the main Map view, the locations are set using the longitude and latitude settings for the venue while the map on the single event view is using the address like you see in the maps.google.com link that you’ve provided above.

    To help in diagnosing the main map view issue, would you mind going to your WordPress admin view for the associated venue and check the settings there. Ensure that there are latitude and longitude settings for the venue.

    Let me know if this helps.

    Thanks!

    #1006329
    Yann
    Participant

    Hi Josh and thanks for quick answering, really appreciated here. For the first venue I created it seems that Long/Lat were automatically created. But for the second I tried to create, long/lat aren’t there despite Google Maps ( not the API display but following the external link ) seems to find the right location with adress only.
    Should I type all the long/lat coordinates manually ? How were they automatically detected when creating my first venue ?

    #1006358
    Josh
    Participant

    Hey Yann,

    Thanks for following up!

    The issue here is the use of different parts of the Google Maps API. When looking at the map that shows based on the address within your single event view, it is an embedded map using the Google Maps Embed API.

    The Longitude and Latitude settings for the venue should get set automatically when you create the venue. This is done using the Geocoding API. However this can sometimes be hindered by the fact that each IP address has a limited number of API calls that can be made within a 24 hour period. If you’re on a shared hosting plan, it is possible that the limits could have been hit when you created the second venue. Try creating the venue again and see if the proper latitude and longitude values get saved this time.

    In regards to the limits, you can see (within the links above) that the Google Maps Embed API (used for the maps that are working on your site) don’t have a stated usage limit while the Geocoding API has a limit of 2,500 requests every 24 hours.

    Let me know if this helps.

    Thanks!

    #1011158
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Google Maps view working randomly’ is closed to new replies.