Tuesday 15 January 2013

How does Google Maps decide when to use a specific icon? -


I'm using the Google Maps site library to search for nearby hospitals, but it removes results that There are no necessary hospitals (but as a type of hospital). However, I noticed that a hospital icons on the actual hospitals Maps, Google must find a way to see which establishment really that hospitals Does anyone know the public this data Have access to?

This is the icon I am referring to:

I'm making examples of the request:

  var request = {location: self .location, radius: 20000, type: ['hospital'], keyword: 'hospital'};  

The result of the example is not the hospital:

  { "geometry": { "location": { "k": 44.815958, "D": -68.808244}}, "icon": "http://maps.gstatic.com/mapfiles/place_api/icons/generic_business-71.png", "id": "de6e60bd70b90ba4cb86afe149a60169553607f1", "name": "Penobscot community health" [ "," height ": 320," Html_attributions ": []," width ": 320}]," "" "" "Kholne_achchha": { "open_now": true, "weekday_text": []}, "photos "place_id": "ChIJj - 4INRKrkwRN0z2XkoJtVU", "Rating" 3.1 "model": "CoQBdAAAADmf3YA0659efzMbCSPOK6SZttkfus7aWBDhrZZyX63Szl256BRcpz81LH6rIuONldYv256tsN7Zv-N6ZkOkJadlD2VS01bs7C4ierKvGUMyJOJu657xL5MvidF3Tgs9iejeJcXsxjDJYOwtN3m3sbfClfWYVnnIL4hMLYV8P9TnEhBurfJv_30CAG2wp1V73POVGhR-7fz1mCdh4OYWSa3Pw0mPupckoQ", "scope": "Google", "type": [ "Hospital", "Pharmacy", "" 1012 Union Street, Bangor "," html_attributions ": []}  

My guess is that there are a few ways to get around there. You can remove the keyword argument from the API, which acts like a search term instead of a specific match in some kind of place, like the type field.

You may want to be careful about your radius price option.

After this, if you usually search on Google Maps, you will get a broad classification of results. Do you have to be every result being a real hospital or can you filter your own later?

If you filter your own then it looks like this type of information and even the icons are embedded. Results JSON You can see the type of results you want and its By filter is a special feature, otherwise, no additional graphical data will be accessible by API.


No comments:

Post a Comment