Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
# Conflicts:
#	README.md
  • Loading branch information
westnordost committed Nov 6, 2021
2 parents 2183b97 + 33c5e6c commit 6361367
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ Requires Java 8.

## Copyright and License

© 2019-2020 Tobias Zwick. This library is released under the terms of the [Apache License Version 2.0](http://www.apache.org/licenses/LICENSE-2.0.txt).
© 2019-2021 Tobias Zwick. This library is released under the terms of the [Apache License Version 2.0](http://www.apache.org/licenses/LICENSE-2.0.txt).

## Installation

Add [`de.westnordost:osmfeatures:3.0`](https://maven-repository.com/artifact/de.westnordost/osmfeatures/3.0/) as a Maven dependency or download the jar from there.
Add [`de.westnordost:osmfeatures:3.0`](https://mvnrepository.com/artifact/de.westnordost/osmfeatures/3.0/) as a Maven dependency or download the jar from there.

For Android, use [`de.westnordost:osmfeatures-android:3.0`](https://maven-repository.com/artifact/de.westnordost/osmfeatures-android/3.0/).
For Android, use [`de.westnordost:osmfeatures-android:3.0`](https://mvnrepository.com/artifact/de.westnordost/osmfeatures-android/3.0/).

## Usage

Expand Down Expand Up @@ -58,6 +58,8 @@ static def bcp47LanguageTagToJavaLanguageTag(String bcp47) {
}
```

In StreetComplete (app that uses this library), there is [this gradle task written in Kotlin](https://github.com/streetcomplete/StreetComplete/blob/master/buildSrc/src/main/java/UpdatePresetsTask.kt) to do this.

### Initialize dictionary

Point the dictionary to the directory where the data is located (see above). Use `FeatureDictionary` as a singleton.
Expand Down

0 comments on commit 6361367

Please sign in to comment.