geographer icon indicating copy to clipboard operation
geographer copied to clipboard

getCode method for city instance return geoname instead of iso_3166_2

Open raftalks opened this issue 8 years ago • 1 comments

The data does provides ids. iso_3166_2 but in the city class, both geonames and the code is the same value.

https://github.com/MenaraSolutions/geographer/blob/master/src/City.php#L25

raftalks avatar Jun 19 '17 18:06 raftalks

At the moment Geonames Id is the only public/third-party identification for cities. ISO doesn't issue city codes

dusterio avatar Jun 19 '17 23:06 dusterio