Geoname divisions
Parser to get list of divisions and subdivisions with ISO-3166-2 codes in CSV format from http://www.geonames.org/, (*1)
To execute run the command in shell:, (*2)
php parse.php
The results are saved in files:, (*3)
result/divisions.csv
result/subdivisions.csv
The first column is a country ISO-3166-1 code, (*4)
Divisions and subdivisions marked as "no longer exists:" are skipped., (*5)
Example of parsed urls:, (*6)
- http://www.geonames.org/FR/administrative-division-.html
- http://www.geonames.org/GB/administrative-division-.html
- http://www.geonames.org/US/administrative-division-.html
Additional
Parser for country divisions from Wikipedia:
https://github.com/tigrov/wikipedia-divisions, (*7)
License
MIT, (*8)