Skip to content

Commit

Permalink
Updates README
Browse files Browse the repository at this point in the history
  • Loading branch information
rozkminiacz committed Feb 23, 2018
1 parent eb02036 commit e9e1733
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,19 @@ You can specify transit mode, and what to avoid during route planning.
Yeah! That's possible! Just implement **Converter<GeocodedResponse?, List<PolylineOptions>>** and you are ready to go!

```kotlin
directionsApiClient = DirectionsApiClient(
apiKey = getString(R.string.google_directions_key),
polylineConverter = myConverter)
class AnotherBoringMapActivity : Activity(){
fun configure(){
val myConverter = object : Converter<GeocodedResponse?, List<PolylineOptions>> {
override fun convert(from: GeocodedResponse?): List<PolylineOptions> {
//
}
}

val directionsApiClient = DirectionsApiClient(
apiKey = getString(R.string.google_directions_key),
polylineConverter = myConverter)
}
}
```

### I still don't know hot to use it
Expand Down

0 comments on commit e9e1733

Please sign in to comment.