com.google.android.gms.location.places.GeoDataApi |
Main entry point for the Google Geo Data API.
The Geo Data API provides access to Google's database of local place and business information. A place, generally, is defined as a particular physical space that has a name. The GeoDataApi provides access to getting places by ID, autocompleting a user's search query by name or address, and adding places to Google's Places database. Most API methods may involve a round-trip to a Google server.
Some methods of the GeoDataApi API are subject to a quota limit, as mentioned in the description of the methods concerned.
See PlacesStatusCodes
for detailed information about the error codes.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Add a place to Google's Places database.
| |||||||||||
Get autocomplete predictions for a query, based on the name or address of a place.
| |||||||||||
Returns the places for the given
placeId s.
|
Add a place to Google's Places database.
By adding a place, you can supplement the data in the Google's database with data from your application. This allows you to:
Get autocomplete predictions for a query, based on the name or address of a place.
Access to this method is subject to quota restrictions.
query | for which the autocomplete predictions are to be fetched. |
---|---|
bounds | for geographically biasing the autocomplete predictions. |
filter | criteria for customizing the autocomplete predictions. |
Returns the places for the given placeId
s.
Note that the ID for given place, once returned by some Places API call, should always be valid for passing to this method. However, place IDs can change over time, so the returned Places may have a different IDs than the ones used for looking it up. This method might return fewer places than requested if some of the places could not be resolved.
placeIds | the IDs to look up. At least one ID should be provided. |
---|