Places SDK - iOS
This iOS 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, Place Details and NearbySearch, along with capabilities like configurable retry logic and automatic token refresh, 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.
Purpose
The primary purpose of the Ola-Maps-Services SDK is to enable developers to seamlessly integrate the services including Autocomplete, Forward Geocoding, Reverse Geocoding, Place Details and NearbySearch.
Specifications
- Minimum iOS version: iOS 12.0.
- Xcode Version: 12 or later.
Sample App
Please refer to theGithub Sample Appfor getting better clarity on same.
Installation
xcframeworks
in your iOS project. Make sure you embed
all the frameworks in General > Frameworks, Libraries and Embedded Content.
Features
- Autocomplete
- Forward Geocoding
- Reverse Geocoding
- Place Details
- NearbySearch
- TextSearch
Setup
import OlaMapService
in your project, and then initialize PlacesService
. Initialize the SDK with API_KEY and the BASE_URL provided in the Platform dasboard.Autocomplete
An Autocomplete API provides real-time suggestions to users as they type in a search bar or input field. It enhances user experience by predicting possible completions based on partial input, leveraging databases or external data sources. This API is essential for search engines, e-commerce sites, and data-entry applications.
Forward Geocode
A Forward Geocoding API converts human-readable addresses into geographic coordinates (latitude and longitude). This API is vital for mapping services, location-based applications, and logistics, enabling users to input an address and receive precise location data for navigation, spatial analysis, and geolocation services.
Reverse Geocoding
A Reverse Geocoding API transforms geographic coordinates (latitude and longitude) into human-readable addresses. This API is crucial for mapping applications, location-based services, and navigation systems, allowing users to obtain address details from a specific location point, facilitating user-friendly interfaces and enhanced location tracking.
Place Details
A Place Details API provides comprehensive information about a specific location, such as its name, address, contact details, opening hours, and user reviews. This API is essential for travel apps, local directories, and location-based services, enhancing user experience by offering detailed data on places of interest.
Place Icon
You can request URLs for PNG format icons, which indicate different types of places like coffee shops, restaurants, and hotels. The Place Details requests also provide the corresponding icon background colors.
iconMaskBaseURI
iconBackgroundColor
NearbySearch
A Nearby Search API allows users to find points of interest within a specified radius from a given location. This API is essential for travel apps, local business directories, and location-based services, helping users discover nearby restaurants, shops, landmarks, and other amenities based on their current or specified location.
TextSearch
The Places Text Search returns a list of places based on an input query. For eg: "Cafes in Koramangala" or "Restaurant near Bangalore" or "Ola Electric". This is a web service that responds with a list of Places.