Overview
  • Authentication
  • Routing APIs
    • Directions API
    • Directions Basic API
    • Distance Matrix API
    • Distance Matrix Basic API
    • Route Optimizer API
    • Fleet Planner API
  • Roads APIs
    • Snap To Road API
    • Nearest Roads API
    • Speed Limits API
  • Places APIs
    • Autocomplete API
    • Place Details API
    • Advance Place Details API
    • Nearby Search API
    • Advance Nearby Search API
    • Photo API
    • Text Search API
    • Address Validation API
    • Geofencing API
    • Elevation API
  • Geocoding
    • Geocoding API
    • Reverse Geocoding API
  • Map Tiles
    • 2D Tiles
      • Overview
      • Vector Tiles API
      • Static Tiles API
    • 3D Tiles
      • Overview and Integration
    • Style Editor
  • Navigation SDKs
    • Navigation SDK - Android
    • Navigation SDK - iOS
  • Map SDKs
    • Map SDK - iOS
    • Map SDK - Android
  • Places SDKs
    • Places SDK - Android
    • Places SDK - iOS
  • Web SDK
    • SDK Setup
    • Adding Markers
    • Events & Controls
    • Static Maps
    • Geolocation
    • Adding Shapes
    • Marker Clustering
    • Heatmap Layer
    • Ground Overlays
    • Custom Overlays
  • Ola Maps MCP
    • MCP Overview
    • Ola Maps MCP Server
  • Street View

Autocomplete API Overview

The Autocomplete API dynamically enhances search functionality within various applications by identifying entities in user queries and suggesting relevant completions in real-time, significantly improving the user experience. Suitable for a broad spectrum of applications including connected cars, micro-mobility services, and delivery apps, this versatile API seamlessly integrates location search capabilities, catering to both interactive location searches and stand-alone queries for addresses, places, and points of interest. Each autocomplete suggestion offers valuable details such as name, position, address, and functional categories, facilitating effortless location discovery for users. Whether searching for a restaurant, EV charging station, airport, or stadium, the Autocomplete API simplifies the process, ensuring a seamless and efficient search experience tailored to the needs of the user.

Why Autocomplete API?

Geospatial searches often involve complicated text searches of places. To avoid problems of places being misspelt by users, autocomplete comes in handy to accurately point to the location to be requested. So as the user starts typing, the autocomplete functionality suggests relevant places based on the entered text. This enhances the user experience by providing real-time suggestions, reducing the time and effort to find any specific place.

What can Autocomplete API help with?

Autocomplete provides intuitive suggestions of places to be looked up. This helps accurate lookup of places based on the text provided. This solves a lot of use cases like lookup of popular places like restaurants, malls, etc.

How to use

Sample request:

Pro Tip

Remember to use a debounce function to avoid making multiple requests while the user is typing.

Sample request with location-aware search:

Please refer to theAPI documentationfor further details.