Closed arnesetzer closed 2 weeks 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.
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Ö).
lang_x_preferred_shortcode
shortcode
Copied src\pip\components\getLocalizedName.js to src\pip\components\getLocalizedAbbreviation.js and added the function to src\pip\components\extractFields.js.
src\pip\components\getLocalizedName.js
src\pip\components\getLocalizedAbbreviation.js
src\pip\components\extractFields.js
ToDo
: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 ofshortcode
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
tosrc\pip\components\getLocalizedAbbreviation.js
and added the function tosrc\pip\components\extractFields.js
.Here's how others can test the changes :eyes:
ToDo