[Osmcha-dev] API question

wille wille.yyz at gmail.com
Thu Apr 12 17:11:32 UTC 2018


Hi Jason,

The correct endpoint is:
post /api/v1/suspicion-reasons/{id}/changesets/

The suspicion reasons are not reserved for human classification, but it
requires a staff account to use this endpoint. We want to open the
possibility of some companies and users to use this endpoint, but we didn't
defined the rules to do it yet. I'll discuss it with the team next week.

best regards,


2018-04-10 22:08 GMT-03:00 Jason Remillard <remillard.jason at gmail.com>:

> Hi,
>
> I have a changeset classifier that can detect imports, spam, and tagging
> errors.
>
> https://github.com/jremillard/osm-changeset-classification
>
> I would like to run the classifier and post the detections to OSMCha via
> this API.
>
> https://osmcha.mapbox.com/api-docs/#/
>
> At first glance, it is not clear the best way of doing this is. It looks
> like I want to use suspicion-reasons, since is has capability to mark a
> changeset as a potential import or spam.
>
> post /api/v1/suspicion-reasons/{id}/changesets/
>
> But it is marked for staff only, it seems like suspicion-reasons is
> reserved for human classification.
>
> Next would be the tags
>
> post /api/v1/changesets/{id}/tags/{tag_pk}/
>
> The db doesn't have tags for imports or SPAM, just severity.
>
> Also, it seems like it might be a good idea to tag all of my
> classifications with an specific ID, so we can get a feel for how well its
> doing versus the current OSM-Compare hand written classifier.
>
> Thanks
> Jason
>
> _______________________________________________
> osmcha-dev mailing list
> osmcha-dev at openstreetmap.org
> https://lists.openstreetmap.org/listinfo/osmcha-dev
>
>


-- 
Wille
http://wille.blog.br
http://maption.com.br/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/osmcha-dev/attachments/20180412/6a1a2918/attachment.html>


More information about the osmcha-dev mailing list