feed-registry icon indicating copy to clipboard operation
feed-registry copied to clipboard

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

Open rmglennon opened this issue 9 years ago • 4 comments

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 avatar Jan 14 '16 23:01 rmglennon

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 avatar Jan 14 '16 23:01 rmglennon

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.

drewda avatar Jan 20 '16 23:01 drewda

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/

thisisaaronland avatar Jan 21 '16 01:01 thisisaaronland

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

rmglennon avatar Jan 21 '16 23:01 rmglennon