Giter Site home page Giter Site logo

openstreetmap-polska / openaedmap-backend Goto Github PK

View Code? Open in Web Editor NEW
8.0 8.0 0.0 1.1 MB

❤️ Backend powering OpenAEDMap.org — an OpenStreetMap's life-saving AED map

Home Page: https://OpenAEDMap.org

License: GNU Affero General Public License v3.0

Python 92.09% Nix 7.21% Mako 0.70%
aed defibrillator emergency geojson gis mapbox-vector-tile openstreetmap overpass-api public-health python

openaedmap-backend's Issues

Version returned is 0

Example:
https://openaedmap.org/api/v1/node/5140047708
returns

{
    "version": 0.6,
    "copyright": "OpenStreetMap and contributors",
    "attribution": "https://www.openstreetmap.org/copyright",
    "license": "https://opendatacommons.org/licenses/odbl/1-0/",
    "elements": [
        {
            "@photo_id": null,
            "@photo_url": null,
            "@timezone_name": "Europe/Warsaw",
            "@timezone_offset": "UTC+01:00",
            "type": "node",
            "id": 5140047708,
            "lat": 52.2399553,
            "lon": 21.0134473,
            "tags": {
                "defibrillator:location": "W hotelu Sofitel",
                "emergency": "defibrillator",
                "operator": "Sofitel"
            },
            "version": 0
        }
    ]
}

I would expect "version": 2
image
https://www.openstreetmap.org/node/5140047708

Return timezone of the state where AED is located

It is used for calculating whether AED is currently opened together with opening_hours.
Frontend uses Nominatim reverse geocoding API + timezone library to get this information.
It could be precalculated and kept in the database.
It should be recalculcated (cron job?) as borders of countries/states/timezones change.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.