City concept
Closed this issue · 4 comments
zverok commented
Test cases:
Reality.city('Dallas') # => should be Reality::City
Reality.city('Nothing') # => should be nil
Reality.city('New York') # => what should it be? In wikipedia, "New York" is state, and "New York City" is a city...
Reality.city('Odessa') # => city in Ukraine, but how to extract all other Odessas? https://en.wikipedia.org/wiki/Odessa_(disambiguation)
The requirements are the roughly same as for country
(#1), plus city.country
should return Country
object, of course.
zverok commented
In fact, there's one cozy template Infobox settlement for all human settlements. So, potential usage is wider than "only city".
NB: some countries cities have subclasses of forementioned template ("Infobox German location", "Infobox Greek Dimos" and so on). It will be not so easy, as my first guess.
zverok commented
Most obvious fields:
- name (or names)
- country
- area
- population
- leaders
- elevation
- time zone
zverok commented
Something is pushed. #country
is awfully incomplete. Next target:
- geography (lat/lng)
zverok commented
Some naive Geo::Coord
implementation added.