-
Notifications
You must be signed in to change notification settings - Fork 38
MapRoulette integration
OSMCha now can push features to MapRoulette challenges. Each time OSMCha receives a new feature, it will check if the feature suspicion reasons (flags) are associated with a MapRoulette challenge and, if so, register that feature on MapRoulette.
The setup currently can be made only by the API and it's restricted to OSMCha staff users, but we plan to add a web interface soon.
GET https://osmcha.org/api/v1/challenges/
Do a POST request to https://osmcha.org/api/v1/challenges/ with the following content
{
"challenge_id": 0,
"reasons": [
0
],
"active": true
}
After the integration is created, all the new features that have one or more suspicion reasons associated with an integration will be pushed to MapRoulette. A list of suspicion reasons ids is available at https://osmcha.org/api/v1/suspicion-reasons/
Do a PATCH request to https://osmcha.org/api/v1/challenges/:id/, with the new values of the fields that needs to be modified. You can disable an integration by setting the active
field to false
.
Do a DELETE request to https://osmcha.org/api/v1/challenges/:id/.
- All the API endpoints are restricted to staff users.
- Note that the
:id
value on the url is not MapRoulette challenge id, but the integration id on OSMCha. - There are more documentation available on https://osmcha.org/api-docs/
- Examples of MapRoulette challenges that receive features from OSMCha: 8113 and 13658