Google Places API Now Allows you to Add Flexible Search and Google Reviews to Your Local Apps

by admin on July 10, 2012



The Google Places API has only gotten better since its launch last year, they’ve added numerous features requested by developers such as keyword search, rank by distance, and support for Events. This year at the Google I/O they announced the launch of Google Reviews, Text Search, Opening Hours, and Paging.

Thor Mitchell, Google Places API Product Manager listed and explained how these new features work:

Google Reviews

By far the most popular request from developers since the day we launched has been access to the Google Reviews offered on Google+ Local. We’re therefore delighted to announce that the top 5 Google Reviews for a Place are now included in the response to a Place Details request. Each review is accompanied by additional information such as the scores given by the author, author details, and the date that the review was submitted.

Text Search

Today we are introducing Text Search, a whole new way of searching that broadens the scope of the Places API to any device that can accept text input, be it from a keyboard or from voice recognition.

Text Search brings the flexible capabilities of the Google Maps search field to your application. Rather than requiring the user’s location to search around, Text Search interprets free text queries that can include both what the user is searching for, and where they are searching for it. For example, you can submit a search for “Pizza in New York”, or “Sushi near Sydney”. You can also bias queries to a particular area, so that even queries with no address component can be correctly interpreted.

Opening Hours

Another popular request from developers has been access to the opening hours for businesses. The Place API now returns the 7 day opening hours for a Place in the Place Details results where available. Place Search results also now include a property that indicates if a Place for which opening hours are available is currently open.

Paging

Today we are also introducing support for paging, which increases the number of search results that can be retrieved to 60. Applications can now request two additional sets of 20 results after the initial request has been made.

You can try these new features with the below demo. Enter a search query to see 20 matching results, with more loaded when you scroll to the end of the list. Click on a result to see the reviews for that place under the map, and the opening hours for today in the InfoWindow on the map.

Google also announced a new dedicated home page for the Places API at developers.google.com/places. To know more about how your application can benefit from the Google Places API join the developer community on Stack Overflow.

via: Google GeoDevBlog


{ 0 comments… add one now }

Previous post:

Next post: