2014-07-11

View Demo

The Google Places API is a service that returns information about Places — defined within this API as establishments, geographic locations, or prominent points of interest — using HTTP requests. Place requests specify locations as latitude/longitude coordinates.

The following Place requests are available:

Place Searches return a list of Places based on a user’s location or search string.

Place Details requests return more detailed information about a specific Place, including user reviews.

Place Actions allow you to supplement the data in Google’s Places Database with data from your application. You can schedule Events, add and remove Places, or weight Place rankings from user activity with Place Bumps.

Place Photos gives you access to the millions of Place related photos stored in Google’s Place database.

Place Autocomplete can be used to automatically fill in the name and/or address of a place as you type.

Query Autocomplete can be used to provide a query prediction service for text-based geographic searches, by returning suggested queries as you type.

Each of the services is accessed as an HTTP request, and returns either an JSON or XML response. All requests to a Place service must use the https:// protocol, and include an API key.

Authentication

The Google Places API uses an API key to identify your application. API keys are managed through the Google APIs Console . You’ll need your own server API key before you can begin using the API. To activate the Places API and create your key:

Visit the Google APIs Console at https://code.google.com/apis/console and log in with your Google account.

A default project called API Project is created for you when you first log in to the APIs Console. You can use the project, or create a new one by clicking the API Project button at the top of the window and selecting Create. Maps API for Business customers must use the API project created for them as part of their Places for Business purchase.

Click the Services link in the left-hand navigation panel.

Click the status switch (the on/off button) next to the Places API entry. The switch slides to ON.

Click API Access in the left-hand navigation panel.

Click Create new key for Android App.



Over the years we have developed several Google Map, mashups Android and iPhone components, code modules and Frameworks that can work as plug and play solutions for developing new apps that will substantially reduce the app development cost and time.

Contact us to discuss your multimedia mobile application development project.



Let us take the example to find out the near by places.

To search for specific types of places (such as cafes), you can include the types parameter in your Places Search requests.

2. Try specifying multiple place types by modifying the URL below to include other place types separated by a pipe ( | ) character in the URL. The Places Search API will return Places associated with any of the types that you specify. The example below demonstrates how to search for places that are considered a cafe or a bakery or both:

3. To retrieve places based by distance:

1. Remove the radius parameter from your Place Search request.

2. Add a rankby=distance parameter/value pair.

3. Include one or more of the keyword, name, or types parameters.

For example, the URL below can be used to specify a search for cafes near downtown San Francisco, with results ordered by distance from the location:

Place.java :

PlacesService.java:

MainActivity.java:

+++++++++++++++++++

We have considerable experience in developing apps using Google Places API.

Photos – City Guide

Over the years we have developed several advanced Google Places and Google Map based Android and iPhone components, code modules and Frameworks that can work as plug and play solutions for developing new apps that will substantially reduce the app development cost and time.

Contact us to discuss your Google Places or Map based mobile application development project.

Show more