FixMyBerlin / atlas-app

Radverkehrsatlas provides access to bicycle infrastructure data from OpenStreetMap (OSM) for administrative staff.
https://radverkehrsatlas.de/
GNU Affero General Public License v3.0
11 stars 4 forks source link

Add `id` to Export Endpoints #116

Closed rush42 closed 2 months ago

rush42 commented 3 months ago

Because we made the id a dedicated database column it was no longer available in the exports. This PR reintroduces but as the dedicated feature id weather as a property. The example bellow demonstrates this change.

Now:

{
    type: 'feature',
    id: 'way/100',
    properties: {},
    geometry: ...
}

Before:

{
    type: 'feature',
    properties: {
        id: 'way/100'
    },
    geometry: ...
}