Releases: westnordost/osmfeatures
v6.2: downgrade AGP
- support proper stream parsing using (
kotlinx-io
's)Source
- fix
FeatureDictionary.getById
didn't always exclude country-specific results when thecountry
parameter wasnull
even though it was documented as such
v6.1
- Fix crash when single presets were translated only partially for a dialect (#26), by @logan12358
- Aliases and terms of presets in the parent language are now merged into any dialects (#26)
v6.0
The library is now a Kotlin Multiplatform library. This is a breaking API change. There is also no separate artifact for Android anymore.
v5.2
v5.1
- add property
boolean isSuggestion
toFeature
to be able to tell if a feature is a brand feature or not - add method to get a feature by its id to
FeatureDictionary
v5.0
Added support for aliases
of presets. They are treated similarily as alternative names.
v4.1
Added support for scripts.
E.g. there can be localization of presets in "bg" (Bulgarian) and also "bg-Cyrl" (Bulgarian in Cryllic).
v4.0
Brand features are becoming too big.
So now, brand features are loaded lazily per-country. I.e. additionally to a presets.json
, there can be presets-US.json
(using ISO 3166-1 alpha2 codes) and even presets-US-NY.json
(ISO 3166-2) in the same directory, which will be loaded on demand. This functionality is used in StreetComplete.
v3.0
Support for NSI brand names (v6.x). Pass the path to the NSI presets as second parameter to the create
function.
Note that the NSI presets are actually not on the root level of https://github.com/osmlab/name-suggestion-index/blob/main/dist/presets/nsi-id-presets.json but in the "presets" object. The library expects a presets.json to have all the presets at the root level.