AI-generated Key Takeaways
-
The Places SDK for Android allows you to build location-aware apps that utilize Google's database of local place and business information.
-
You can choose between the Places SDK for Android and the Places SDK for Android (New), each with its own features and pricing model.
-
Key functionalities include Place Autocomplete, Current Place, Place Details, Text Search, Place Photos, and Place IDs to enrich user experiences.
-
Before using the SDK, you need a project with a billing account and the Places API enabled, along with adhering to Google Maps Platform Terms of Service.
-
Ensure your app displays relevant attributions when presenting information sourced from the Places SDK for Android.
Introduction
The Places SDK for Android lets you build location-aware apps that respond contextually to the local businesses and other places near the user's device. This means you can build rich apps based on places that mean something to the user, to complement the straightforward geographic-based services offered by the Android location services.
Concepts
The following interfaces provide the primary entry points to the Places SDK for Android:
Places
provides programmatic access to Google's database of local place and business information, as well as the device's current place.Autocomplete
provides pre-made widgets to return place predictions in response to user search queries.
A place is defined as a physical space that has a name. Another way
of thinking about a place is that it's anything you can find on a map.
Examples include local businesses, points of interest, and geographic
locations. In the API, a place is represented by the
Place
interface. It includes information such as the name of the place and its
address, geographical location, place ID, phone number, place type, website
URL, and more.
API overview
Help your customers explore where they are and what's around them:
- Place Autocomplete automatically fills in the name and/or address of a place as users type.
- Place Details return and display more detailed information about a place.
- Nearby Search returns a list of places based on a location and a search radius.
- Place Photos returns high-quality images of a place.
- Text Search returns places based on a search text string.
- Place IDs store the unique ID for one or more places for retrieval of place information on demand.
Policies and Terms
All applications that use the Places SDK for Android must adhere to the requirements described in the Google Maps Platform Terms of Service, Usage and Billing, and Displaying Attributions.