thomersch / openstreetmap-calendar

osmcal, a Collaborative Calendar for OpenStreetMap-related Events
https://osmcal.org
Apache License 2.0
33 stars 9 forks source link

Add coordinates to location property in API result #28

Closed jbelien closed 4 years ago

jbelien commented 4 years ago

In my OpenStreetMap Calendar Widget, I would like to add the possibility to create a map of the events.

Could you add the coordinates to the location property in the API result ?

Thanks !

thomersch commented 4 years ago

Definitely 👍

thomersch commented 4 years ago

Events look now like this:

{
    "name": "Réunion Mensuelle OSM GrandEst",
    "url": "https://osmcal.org/event/226/",
    "date": {
        "human": "27th May 17:30",
        "whole_day": false,
        "start": "2020-05-27 17:30:00"
    },
    "location": {
        "short": "Vandœuvre-lès-Nancy, Grand Est, France",
        "detailed": "Médiathèque Jules Verne, Grand Est, France",
        "coords": [
            6.172997,
            48.663048
        ],
        "venue": "Médiathèque Jules Verne"
    }
}

Just in case, I added a few more details on https://osmcal.org/documentation/#API

jbelien commented 4 years ago

Awesomely awesome ! 🎉