Tuesday, March 22, 2016

Is Google deprecating some of the Places services?


 Google has recently announced and already stopped supporting the places API search filter accepting multiple values.
The intention behind this was to make the search result match between google maps API and places API. Places API now uses 
Google Map search services to give the result. With this change, the type filter which was used to specify the place type such as 
restaurants etc cannot accept multiple values. 

Beginning Feb 16, 2016, we are replacing the types restriction parameter with a new type search parameter. If you have been using the types parameter for Nearby Search, Text Search or Radar Search you will be affected.

Requests using the types parameter and those specifying multiple types (for example, types=hospital|pharmacy|doctor) will continue to return results until Feb 16, 2017, but we do not recommend using multiple types in a search request. After that date, requests with multiple types will no longer be supported. To ensure the best possible search results for your users, we recommend using a single type in search requests.

example is below 

https://maps.googleapis.com/maps/api/place/textsearch/json
    ?type=airport
    &location=-33.87,151.21
    &radius=5000
    &key=

In addition, we are amending the list of supported types. The types establishment, food, health, general_contractor, finance and place_of_worship, will not be available as searchable types from Feb 16, 2017. However these types will still be returned in search and details results.

    
references:

http://googlegeodevelopers.blogspot.in/2016/02/changes-and-quality-improvements-in_16.html

No comments:

Post a Comment