## Add location search functionality on a map

First, make sure you've provisioned a search index resource and configured your app using the instructions in either [Amplify CLI - Geo - Location Search](/cli/geo/search) or [Use existing Amazon Location Service resources](/lib/geo/existing-resources) and you have already setup [displaying a map](/lib/geo/maps) in your application.

import android1 from "/src/fragments/lib/geo/android/search/30_location_search_map.mdx";

<Fragments fragments={{android: android1}} />

import ios2 from "/src/fragments/lib/geo/ios/search/30_location_search_map.mdx";

<Fragments fragments={{ios: ios2}} />

## Location-based search capabilities

Amplify Geo enables you to search for locations by text, addresses, or geo-coordinates.

import android3 from "/src/fragments/lib/geo/android/search/10_search_by_text.mdx";

<Fragments fragments={{android: android3}} />

import ios4 from "/src/fragments/lib/geo/ios/search/10_search_by_text.mdx";

<Fragments fragments={{ios: ios4}} />

import android6 from "/src/fragments/lib/geo/android/search/20_search_by_coordinates.mdx";

<Fragments fragments={{android: android6}} />

import ios7 from "/src/fragments/lib/geo/ios/search/20_search_by_coordinates.mdx";

<Fragments fragments={{ios: ios7}} />
