AmericanRedCross / osm-stats

Track and analyze contributions to Missing Maps
http://missingmaps.org
BSD 3-Clause "New" or "Revised" License
26 stars 9 forks source link

Extending the API [feature request] #45

Closed bjohas closed 6 years ago

bjohas commented 7 years ago

Hello,

is there interest in extending the API? We've got some ideas for creating a JOSM plugin, that can use the osm-stats API results for validating during mapathons. We could build this separately (calling the API when needed), but it could also be integrated into the API if there's interest.

Thanks!

dalekunce commented 7 years ago

@bjohas Happy to review and approve any PRs that you send. I like the idea of using it for validation.

bjohas commented 7 years ago

@dalekunce Thanks! I've posted something on the HOT mailing list, to see what interest there is among validators. Let's see what comes back. Would you be happy to have a chat, to see whether what we propose is reasonable?

dalekunce commented 7 years ago

super happy to work through ideas. I suggest putting them all here and that then we can prioritize them. @bjohas

bjohas commented 7 years ago

@dalekunce I experimented with some code here (nodejs): https://github.com/OSM-Utilities/JOSM-Scripts-HOT/blob/master/lib/mmstats.js There's comments that explain how it works.

Also see comment here: https://github.com/AmericanRedCross/osm-stats/issues/44 - the above script uses the hashtag to get users from osmstats, which works for most projects straight off the tasks server, which make it hard to not add the hashtag. However, for stats from a local mapathon (e.g. adding mmcambridge manually) is hit and miss, in which case it's useful to be able to look through the full planet data in an area.