Google Maps Showing Lat/Long as 0,0

WordPress Event Management, Calendars & Registration Forums Report A Bug Google Maps Showing Lat/Long as 0,0

This topic contains 2 replies, has 2 voices, and was last updated by  Stephen Harris 7 years, 5 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #27706

    Hi Stephen,

    I’m trying to add a venue with just the postcode and it is only showing a marker at 0,0 on the map. I would expect it to show the same result as Google Maps would with just the postcode. If I add an entire address into the fields when editing a venue, it works. The only issue is that I’m using a JSON feed from ChurchSuite to get event details and it only comes with a postcode. If there is a way for the map in the venue to show what Google Maps shows when searching just with a postcode, that would be really helpful.

    I’m using version 4.8 of WordPress and 3.1.9 of Event Organiser and I’m currently working locally.

    I would really appreciate some support on this if possible and thank you for such a great plugin.

    Nathan Skelton
    #27708

    Hi Nathan,

    I’ll take a look at this. However, you mentioned you’re pulling events from an event feed, the plugin will only perform reverse geocoding when creating/editing events via the UI.

    Of creating a venue via the API then you would need to pass the latitude/ longtitude coordinates.

    Stephen Harris
    #27710

    Hi Nathan,

    I’ve just tested this by creating an venue via the user interface, providing just a postcode and it found the location on the map correctly.

    As mentioned previously, if you’re creating a venue via eo_insert_venue() then you will need to provide the latitude/longitude co-ordinates yourself, probably using some reverse geocoding library.

    Stephen Harris
Viewing 3 posts - 1 through 3 (of 3 total)
To enable me to focus on Pro customers, only users who have a valid license for the Pro add-on may post new topics or replies in this forum. If you have a valid license, please log-in or register an account using the e-mail address you purchased the license with. If you don't you can purchase one here. Or there's always the WordPress repository forum.