Skip to main content
Use Radar’s autocomplete component to add address autocomplete to your websites and apps with just a few lines of code. You can check out the autocomplete explorer in the dashboard, or check out a full-page maps demo and store locator demo with an autocomplete component.

How it works

To use the autocomplete component, simply initialize the Radar SDK with your publishable key and specify the container to render the input into.

Configuration

When creating the autocomplete component, you can provide options to customize the autocomplete behavior, as well as the size and style of the input. Available options include:

Quickstart

First, sign up for Radar and get an API key. Then, get started with the sample code below.

JavaScript

React

React Native

Examples

Use Autocomplete with Radar Maps in React

Below is an example of how you can use Radar Maps with Radar Autocomplete in React.