From b63aabb639a57a1b8e34b5058446d21aec6a9e8a Mon Sep 17 00:00:00 2001 From: Aleksandar Vukovic Date: Tue, 24 Oct 2017 14:55:17 +0200 Subject: [PATCH] Added option for custom locale for geocoding --- .../main/java/io/nlopez/smartlocation/SmartLocation.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/library/src/main/java/io/nlopez/smartlocation/SmartLocation.java b/library/src/main/java/io/nlopez/smartlocation/SmartLocation.java index fd40c7d4..484920c6 100644 --- a/library/src/main/java/io/nlopez/smartlocation/SmartLocation.java +++ b/library/src/main/java/io/nlopez/smartlocation/SmartLocation.java @@ -115,6 +115,13 @@ public GeocodingControl geocoding() { return geocoding(new AndroidGeocodingProvider()); } + /** + * @return request handler for geocoding operations with custom locale + */ + public GeocodingControl geocoding(Locale locale) { + return geocoding(new AndroidGeocodingProvider(locale)); + } + /** * @param geocodingProvider geocoding provider we want to use * @return request handler for geocoding operations