Skip to content
This repository has been archived by the owner on Oct 30, 2020. It is now read-only.

Add a feed: Unexpected auto-advance text on location lists #102

Open
rmglennon opened this issue Jan 14, 2016 · 4 comments
Open

Add a feed: Unexpected auto-advance text on location lists #102

rmglennon opened this issue Jan 14, 2016 · 4 comments

Comments

@rmglennon
Copy link
Contributor

When typing into the operator location box for country and state, the autocomplete/auto-advance scrolls the list in an unexpected way. It looks for the first matching text, rather than the first letter of the name. I found this when typing "It" for Italy and it scrolled to Eritrea because it is the first word with "it" somewhere in it.

Type a G and Afghanistan is highlighted. If you've already scrolled down the list, then the results are a little weirder.

Minor issue, but perhaps there is another reusable control we can use out there for this....

@rmglennon
Copy link
Contributor Author

Adding to this, the prepopulated states may not be correct.

I added a feed for Palermo, Italy and picked Italy in the country list. The only option in the States drop-down list is Livorno. However, Palermo is in Sicily and the province of Palermo.

@rmglennon rmglennon changed the title Add a feed: Unexpected auto-advance text on location lists Add a feed: Unexpected auto-advance text on location lists and incorrect location names Jan 15, 2016
@drewda
Copy link
Member

drewda commented Jan 20, 2016

Country and region lists come from Who's on First, so we can follow up about Italian provinces with @thisisaaronland. Looks like WOF has Italian provinces but they're not making it into the meta dumps that we fetch to manually bake into the Feed Registry front-end.

@thisisaaronland
Copy link

Ah... I see what the problem is and the only question is how best to set things up to accommodate your needs. Specifically many (most) of the regions in Italy are parented by "macroregions". For example, Bologna [1] is parented by Emilia-Romagna [2] which in turn is parented by Italy.

A quick and easy way to deal with this problem would be to key off the iso column in each CSV file (which yields 109 regions) but let us exchange mouth-words to arrive at a more-better solution, if there is one.

[1] https://whosonfirst.mapzen.com/spelunker/id/85685351/
[2] https://whosonfirst.mapzen.com/spelunker/id/404227509/

@rmglennon
Copy link
Contributor Author

Changing this issue back to being only about the autocomplete behavior of the list.

@rmglennon rmglennon changed the title Add a feed: Unexpected auto-advance text on location lists and incorrect location names Add a feed: Unexpected auto-advance text on location lists Jan 27, 2016
@drewda drewda added this to the "add a feed" follow-on milestone Feb 8, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants