GFDRR / opencities

Jekyll template pages for Open Cities project
https://opencitiesproject.org
GNU General Public License v3.0
2 stars 6 forks source link

Stats not matching OSMA #135

Open cgiovando opened 5 years ago

cgiovando commented 5 years ago

I just noticed that OSM stats reported on city pages in some cases don't match those in OSMA when using the same AOI. Here's an example for Accra:

screen shot 2019-02-14 at 12 45 21

The total length of roads is 246km, while OSMA shows only 35km:

screen shot 2019-02-14 at 12 46 56

@ppasq can you please check that the stats on city pages are using the correct AOIs in calling the OSMA API?

enockseth commented 5 years ago

And to add to this, I am doubting the stats under the Top Contributors (Buildings) section too which could be as a result of the above. Thanks

ppasq commented 5 years ago

The AoI is defined in one place. For instance, in the case of Accra is here. So I would expect all the stats to be wrong if the polygon used is not correct. That doesn't seem the case since in the cities I've checked the stats for buildings are correct while the others (clearly) are not. I've reverted the changes I made to the app.js file but the numbers are always the same. Maybe the problem is in OSMA Charts. I'm going to double check the standalone app and let you know.

ppasq commented 5 years ago

I've started OSMA Charts application and the stats I get from Accra are pretty similar:

screenshot 2019-02-26 at 12 29 17

@cgiovando could you please contact the OSMA charts developers for an opinion?