pelias / wof-admin-lookup

Who's on First Admin Lookup for the Pelias Geocoder
https://pelias.io
MIT License
9 stars 24 forks source link

[WIP] Add support for multilang shortcode #315

Closed arnesetzer closed 2 weeks ago

arnesetzer commented 1 year ago

:wave: I did some awesome work for the Pelias project and would love for everyone to have a look at it and provide feedback.


Here's the reason for this change :rocket:

Use the lang_x_preferred_shortcode instead of shortcode if availible. Should not make much differences but for example every descendants in upper austria (https://spelunker.whosonfirst.org/id/85681677/) got the wrong abbreviation (OO instead off OÖ).


Here's what actually got changed :clap:

Copied src\pip\components\getLocalizedName.js to src\pip\components\getLocalizedAbbreviation.js and added the function to src\pip\components\extractFields.js.


Here's how others can test the changes :eyes:

ToDo