diff --git a/README.md b/README.md index b62beb1..7e67e41 100644 --- a/README.md +++ b/README.md @@ -64,9 +64,19 @@ You can specify transit mode, and what to avoid during route planning. Yeah! That's possible! Just implement **Converter>** 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> { + override fun convert(from: GeocodedResponse?): List { + // + } + } + + val directionsApiClient = DirectionsApiClient( + apiKey = getString(R.string.google_directions_key), + polylineConverter = myConverter) + } +} ``` ### I still don't know hot to use it