[wp-meta] [Making WordPress.org] #3367: Events API: Improve city disambiguation

Making WordPress.org noreply at wordpress.org
Mon Nov 30 05:02:24 UTC 2020


#3367: Events API: Improve city disambiguation
------------------------------------------+---------------------
 Reporter:  iandunn                       |       Owner:  (none)
     Type:  defect                        |      Status:  new
 Priority:  normal                        |   Milestone:
Component:  Events API                    |  Resolution:
 Keywords:  needs-patch needs-unit-tests  |
------------------------------------------+---------------------

Comment (by dd32):

 #3728 has increased the number of cities in the database, as a result it's
 much more likely to have conflicts here.

 One option, that will probably work rather well for the USA (USA is the
 primary country that this really affects I think?) is to add `City, STATE`
 to the lookup table as well.

 For both Portsmouth and Portland, there's a dozen or so states which have
 a place called that throughout the USA.

 Adding `City, State` will probably work well in those cases, as long as we
 also limit it to populations greater than say 1,000 to avoid the places
 that aren't necessarily required. That should reduce the number of extra
 entries needed to be added to the database.

 In most cases, just searching for "Portland" would return the right result
 if the timezone is set correctly, and if searching from Australia or UK
 it'll return the local Portland instead.

 You can view the various cities in the database by looking at
 [http://www.geonames.org/advanced-
 search.html?q=Portland&country=US&featureClass=P Portland] and
 [http://www.geonames.org/advanced-
 search.html?q=Portsmouth&country=US&featureClass=P Portsmouth]

-- 
Ticket URL: <https://meta.trac.wordpress.org/ticket/3367#comment:2>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org


More information about the wp-meta mailing list