OpenBookPrices / country-data

Country related data such as ISO codes, currencies etc
MIT License
513 stars 165 forks source link

Bounding boxes for countries #41

Open fentas opened 8 years ago

fentas commented 8 years ago

Hey there, I found your repo and this source of data https://data.hdx.rwlabs.org/dataset/bounding-boxes-for-countries ( source: https://en.wikipedia.org/wiki/User:The_Anome/country_bounding_boxes )

I wrote a little wrapper to merge the data. https://github.com/fentas/country-data-bounds

Pull Request as a result of this. Adding "bounds" field as array with [ longmin latmin longmax latmax ].

Hope this helps as you mentioned it in Possible future additions.

fentas commented 8 years ago

I found a better source for bounding box. https://pypi.python.org/pypi/country-bounding-boxes/0.2.3

I merged the data as follows:

Within the country csv I separated the multi array with the char ';'.

evdb commented 8 years ago

This would be great to add, thank you.

A few thoughts, what do you think:

Thanks again :)

niftylettuce commented 8 years ago

@fentas did you see @evdb comments?