Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accessibility status for locations via wheelmap.org #287

Closed
rubiii opened this issue Oct 23, 2014 · 8 comments
Closed

Accessibility status for locations via wheelmap.org #287

rubiii opened this issue Oct 23, 2014 · 8 comments

Comments

@rubiii
Copy link

rubiii commented Oct 23, 2014

Hey,

I would like to add support for a badge displaying the accessibility status for a location (or node as they call it) via wheelmap.org. This could be implemented by having the user provide a node-id and then just return a green-yellow-red-grey badge depending on the status for that location.

The accessibility for a location can be retrieved from wheelmap.org via a simple GET request and the status is in that JSON under node/wheelchair. it’s one of "yes", "no", "limited" or "unknown".

http://wheelmap.org/nodes/2323004600.json

What do you think?

@phoet
Copy link

phoet commented Oct 23, 2014

here is an example response

± |master ✓| → curl http://wheelmap.org/nodes/2323004600.json | python -m json.tool
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   452    0   452    0     0   2558      0 --:--:-- --:--:-- --:--:--  2568
{
    "node": {
        "category_id": 10,
        "city": null,
        "housenumber": "28a",
        "id": 2323004600,
        "lat": 53.5574035,
        "lon": 9.9617082,
        "name": "betahaus",
        "phone": null,
        "photo_ids": [],
        "postcode": null,
        "region": "Hamburg",
        "street": "Lerchenstra\u00dfe",
        "type_id": 100,
        "website": "http://hamburg.betahaus.de/",
        "wheelchair": "limited",
        "wheelchair_description": "keine Stufen, aber kein rollstuhlgerechtes WC"
    },
    "node_types": [
        {
            "category": 10,
            "icon": "workoffice",
            "id": 100,
            "identifier": "company"
        }
    ]
}

@espadrine
Copy link
Member

This sounds good! Thanks a lot for the information.

Would something like limited, from /wheelmap/a/2323004600.svg be good (with a for accessibility)?

@rubiii
Copy link
Author

rubiii commented Oct 23, 2014

Sure, I think that looks good!

@olivierlacan
Copy link
Member

Just a drive by HELL YEAH. 👍

@espadrine
Copy link
Member

It will be live in 24h.

@phoet
Copy link

phoet commented Oct 26, 2014

\o/

@rubiii
Copy link
Author

rubiii commented Oct 27, 2014

works great! thank you very much.

@PyvesB
Copy link
Member

PyvesB commented Dec 10, 2018

We'vre done some work to rewrite and modernise these badges in #2486. They will soon be working as expected again! 😉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants