From e9e1733315d44ef4d15aa31d5c12d25fe5dd967b Mon Sep 17 00:00:00 2001 From: jaroslawmichalik Date: Fri, 23 Feb 2018 23:35:14 +0100 Subject: [PATCH] Updates README --- README.md | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) 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