sneetsher / gpx-renamer

File renamer for GPX traces

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Some places has only one level after country - reverse-geocode module

sneetsher opened this issue · comments

Current state example:

  • Any place in Jijel is reverse-geocoded to Algeria - Jijel, which are Country L2 - Wilaya L3 administrative level in OSM
  • While others resolved to Country L2 - Commune L8

How it should be:
Currently used level for Algeria in OSM: Country L2, Wilaya L3 / Wilaya D L4, Daira L6, Commune L8
Same way should be resulted from reverse-geocode

Issue to be raise to reverse-geocode after checking its upstream data.

$ grep -c ,DZ, /usr/local/lib/python3.9/site-packages/reverse_geocode/geocode.csv
258

It is quiet low number for a large country. The file itself is extracted from GeoNames dump.

Initial check of GeoNames Algeria data is broken after first division (Wilaya/Province). Daira/District & Commune/Municipality data are not very accurate.