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

Mismatch between /hashtags/tag and /users/123 #44

Closed bjohas closed 7 years ago

bjohas commented 7 years ago

The API is excellent! I'm trying to make sense of some discrepancies.

E.g. there seems to be a discrepancy between http://osmstats.redcross.org/hashtags/mmcambridge/users and http://osmstats.redcross.org/users/6172975 ?

How often does the API data refresh?

Thanks!

dalekunce commented 7 years ago

Data is always refreshing. those discrepancies are most likely because of some issues we've had with the Overpass API and data replication.

bjohas commented 7 years ago

Thanks for the response! Do you mean transient issues or ongoing issues?

kamicut commented 7 years ago

@bjohas data is replicated minutely as soon as we can get it from planet.osm and the Augmented Diff API in Overpass. If we experience lag in replication, the changesets can drop. We do not currently have a method to historically backfill derived spatial statistics (length of road changed by a user at a certain time takes a long time to resolve in Overpass) but we're looking into ways to backfill tag-based statistics.

bjohas commented 7 years ago

@kamicut Ok, so you only replicate data that has a missingmaps hashtag? Or you get all data but augment it with hashtags where available? Thanks!

dalekunce commented 7 years ago

@bjohas we track all data with any hashtag. However, for stats only those edits with #missingmaps are counted for MM stats.

bjohas commented 7 years ago

@dalekunce Sorry, trying to understand :) So you have a complete copy of the OSM planet? Or only where the character '#' appears in changeset comments? Thanks!

dalekunce commented 7 years ago

@bjohas only when a '#' in in the changeset comment.

bjohas commented 7 years ago

OK, thanks!!