Last modified: 2013-10-28 17:04:59 UTC
For type:city it's common to include the number of inhabitants after it, so for example type:city(146753). This is useful for seeing the difference between small and large cities. At the moment this is not parsed and gt_type is set to null. This should be parsed and stored in the geo_tags table. Two options: * Store it as "city(146753)" * Strip off the (146753) part and only store "city" Either is fine with me
Hmm, funny - we even have tests that are supposed to verify that the latter works - however in practice it doesn't work:P
We need unit tests to tests the unit tests? ;-)
https://en.wikipedia.org/w/index.php?title=User:MaxSem/sandbox&oldid=576195752 results in the following: { "query": { "pages": { "34832133": { "pageid": 34832133, "ns": 2, "title": "User:MaxSem/sandbox", "coordinates": [ { "lat": 45.7572, "lon": 21.2336, "type": "city", "dim": "10000", "globe": "earth" } ] } } } } WORKSFORME? But I remeber it indeed had some problems when I first investigated it.