This SDK is designed to be robust, user-friendly, and easy to integrate into any application. By providing powerful features like Autocomplete, Forward Geocoding, Reverse Geocoding and Directions, along with capabilities like configurable retry logic, this SDK is a comprehensive solution for place-related functionalities.
Designed to be lightweight, easy to integrate, this SDK ensures users have a seamless experience. It also includes periodic updates, making it highly reliable and user-friendly.
The primary purpose of the Ola-Maps-Services SDK is to enable developers to seamlessly integrate the services including Autocomplete, Reverse Geocoding, Forward Geocoding and Route/Direction,
implementation(files("libs/[filename].jar")
, replace [filename] with exact jar filename in "libs" folder)Create an object of AutocompleteRequest class, set the input query in field queryText() method and call the autoComplete() method of PlacesClient as shown in below code snippet.
Create an object of ReverseGeocodingRequest class, set the comma separated latitude and longitude in field latlng() method and call the reverseGeocode() method of ReverseGeocodingClient as shown in below code snippet.
Create an object of ForwardGeocodingRequest class, set the address in field address() method and call the forwardGeocode() method of ForwardGeocodingClient as shown in below code snippet.
Create an object of PlaceDetailsRequest class, set the placeId using method placeId() and call the placeDetails() method of PlaceDetailsClient as shown in below code snippet.
Create an object of NearbySearchRequest class, set the location using method location() and call the nearbySearch() method of NearbySearchClient as shown in below code snippet.
Create an object of TextSearchRequest class, set the queryText and location using method queryText() and location() , then call the textSearch() method of TextSearchClient as shown in below code snippet.