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
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
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