Use Feature ID from Google Maps url in Google Maps API - google-maps

If a place is selected on Google Maps, either from the map itself or from the dropdown in a search, on Google Maps, the url looks like this:
https://www.google.com/maps/place/Starbucks/#55.6767263,12.5666291,17z/data=!3m1!4b1!4m2!3m1!1s0x4652530e00cbee81:0x5e1ce2a9639f9705
After reading this blog article about the URL parameters, the /data part contains a wide range of information, among them is the Feature ID of the selected place. From the url example it's 0x4652530e00cbee81:0x5e1ce2a9639f9705.
I can look up the Feature ID on Google Mapmaker like this:
http://www.google.com/mapmaker?gw=39&fid=0x4652530e00cbee81:0x5e1ce2a9639f9705
There it displays the location with no problem.
Is it possible to also use the Feature ID in Google Maps API and display the location?

I don't believe you can use Feature ID to display locations in Google Maps API. Based on the Data.Feature class, it seems to be more used for styling and data layers.

Related

Places Autocomplete: Must I use a Google map if I Geocode the result with Apple?

Trying to implement a search feature for USA cities in my IOS app. My goal is to use Google's Autocomplete API while legally avoiding the use of a Google map.
So, if I use Places Autocomplete API to display a list of suggested cities as the user types do I have to use a Google map if I geocode the chosen autocomplete result through apple with CLGeocoder?
Google says you must use their data in their maps. However, if I geocode through Apple to retrieve the coordinates for display on a map, the map data isn't coming from Google. Is this legal?
I know Airbnb uses Googles places api but they use Apple maps.
According to Places API Policies:
If your application displays Google Places API Web Service data on a map, that map must be provided by Google.
If your application displays Google Places API Web Service data on a page or view that does not also display a Google Map, you must show a "Powered by Google" logo with that data. For example, if your application displays a list of places on one tab, and a Google Map with those places on another tab, the first tab must show the "Powered by Google" logo.
So you can use Places autocomplete without a Google map, but in this case the logo is required.
https://developers.google.com/places/web-service/policies

Google Maps API - Create a color coded map by neighborhood

I need to show neighborhood data on a map.
Each neighborhoods color would be based on the value it has.
In google maps the neighborhoods are highlighted by google when I search for them.
I do not see a way to create custom colors for them through the API.
To clarify I want to show a bunch of adjacent neighborhoods in different colors, not change the color of all neighborhoods.
More Info: Thanks Duncan, Google Maps has neighborhood outlines, eg typing menisa, edmonton into Google Maps highlights that neighborhood. Would that be geocoding via neighborhood?
This link is an example of what I am looking for.
http://www.bizjournals.com/boston/real_estate/2013/07/boston-liquor-licenses-database.html
Do I need to use google places to query for the google.maps.places.PlaceGeometry.viewport? And then use heatmaps to specify a weightedvalue?
From reading the documentation it looks to me like Google Maps API does not support this. If so could someone confirm that.
You can find the information to get you started here: Google Fusion Tables

Get list of My Places from Google Maps

I'm making a website that has an embedded google map (iFrame) that has multiple place names on it that I set up in My Places. What I want is to be able to list the place names and addresses down the side of the map like it does in My Places.
Obviously I can just export the KML data of the map but I want the page to automatically update when a new place is added to the My Places map without having to export a new file.
If Google still supported RSS feeds I would probably use that, but the current API seems to need to rely on URL requests.
Any help or suggestions are appreciated!
I don't think you can do this with an embedded map. You can add a sidebar to a map from MyPlaces using the Google Maps API v3, a third party KML parser like geoxml3 and a proxy.
example

Google Map : Can we add a link to get directions from current location?

Here's what I would like to do :
http://www.google.com/maps?start=geolocalize_me&destination=some address here
Google would know that the keyword "geolocalize_me" means that it should geolocalize the person and adds the direction afterwards.
Is it possible?
You would want to use the Google Maps API and the directions service, along with HTML5 geolocation. You shouldn't try to link directly to directions in maps.google.com as parameters are undocumented and subject to change.
Here's a sample that uses geolocation to find a users current position.

Hide default information, google maps api v3

I am wondering if there is the option of hiding some information that google shows you by default, as subway stations, or public spaces names. I've been searching the web but few comments I have found. I don't want to display some transports info.
Does google maps api 3 allows you to do that?
Yes, Google Maps API V3 does allow you to remove or change information using Styled Maps:
https://developers.google.com/maps/documentation/javascript/styling