tigrov/geoname-divisions

Parser for country divisions from Geoname.

Installs: 4

Dependents: 0

Suggesters: 0

Security: 0

Stars: 7

Watchers: 2

Forks: 4

Open Issues: 1

pkg:composer/tigrov/geoname-divisions

dev-master 2017-03-31 17:56 UTC

This package is auto-updated.

Last update: 2025-09-10 03:11:46 UTC


README

Parser to get list of divisions and subdivisions with ISO-3166-2 codes in CSV format from http://www.geonames.org/

To execute run the command in shell:

php parse.php

The results are saved in files:

result/divisions.csv
result/subdivisions.csv

The first column is a country ISO-3166-1 code

Divisions and subdivisions marked as "no longer exists:" are skipped.

Example of parsed urls:

Additional

Parser for country divisions from Wikipedia:
https://github.com/tigrov/wikipedia-divisions

License

MIT