How can I read the polygon from a search result like this:
https://www.google.ca/maps/place/Joliette,+QC/#46.0108031,-73.4916076,12z/data=!3m1!4b1!4m5!3m4!1s0x4cc8bdb99340567b:0xc6448884fc5822a6!8m2!3d46.014012!4d-73.4177961
Should I use a layer in my map? Or use the map.Data ?
I know there is a google: libraries=places but I cannot see how to use it.
Is Google actually forbidding us to read their precious database?
What's the use of a such a API if we cannot do such a simple thing!
I saw at least 2 posting from guys wanting to do exactly the same thing!
Thanks in advance
Francois
You cannot get polygons for map features via Google APIs.
Actually, there is a feature request for this in the public issue tracker:
https://code.google.com/p/gmaps-api-issues/issues/detail?id=109
However, it doesn't look like this has a priority.
Related
I have a ton of saved places that appear on my Google Maps - but there is no way to manage, filter or search them. Is there a way to access these locations by API?
I scanned the maps api and can't find any reference. Is there another Google API that makes this available?
There do have a REST API can retrieve the saved places.
http://www.google.com/bookmarks/?output=xml
Visit this link to get more information.
https://www.google.com/bookmarks/
There are also api like:
https://www.google.com/bookmarks/find?q=conf&output=xml&num=10000
https://www.google.com/bookmarks/lookup?
But seems like they have been deprecated and most of document are not available anymore. Use them as you own risk.
Currently the list of saved places in My Maps is not available via an API. There is a feature request tracking this you can use to follow along # https://code.google.com/p/gmaps-api-issues/issues/detail?id=2953.
2022: I created a gist for parsing saved places from a shared list via python. It is really unstable because its a quick&dirty solution but maybe it will help someone: https://gist.github.com/ByteSizedMarius/8c9df821ebb69b07f2d82de01e68387d
Edit: The above answer did not yet take pagination into consideration. Please see my answer here.
I would like to have a map from our earth like in openstreetmap / openlayers with the standart map type, but I only want to have the houses, streets and underground, but no letters/numbers/texts
Is there a way to get this map with one link? normally it would be of the form http://a.tile.opencyclemap.org/cycle/[zoom]/[x]/[y].png
Thanks for useful answers :D
PS: Google doesn´t work for me, because I want to ask frequently and very often (>10k)
You're probably looking for the OSM-no-labels layer on the Wikimedia server, see https://help.openstreetmap.org/questions/40664/how-to-hide-all-labels-of-osm for details.
Example image: http://a.tiles.wmflabs.org/osm-no-labels/14/8534/5530.png
NB. Your requirement to "ask frequently and very often" probably will interfere with the usage policy of said server and will likely get you banned very soon.
I wonder if someone here can help here ,in my web application I'm trying to create map section:
In my map section the objective is to show an indoor search like in the attached picture from Yahoo Maps does someone know how they Created the tenants names and level of the floor on the maps it self?
http://s30.postimg.org/4dh7mlpfl/Yahoo_Maps.png
I think the best answer for this one is going to depend on which mapping framework you were interested in using.
If you're using Yahoo maps: Yahoo got that indoor map data from Nokia's here platform. As far as I know, they don't offer an editor for the indoor mapping data. The major mapping platforms often have some self-service mechanism to add or correct mapping data. If you were set on having this available and you were using Yahoo's maps, you might want to try to contact someone at Nokia's "here" and see how you might be able to get that to happen.
With that being said, you can do something like that with Google Maps as well. They have information and a way to add the interior layout of a building here. I haven't used it...I just know that it exists, so I can't speak to it in much detail.
There is also some support for this kind of thing in OpenStreetMap. I would post a link to an example of it, but stackoverflow says I can't post more than 2 links unless I have more than 10 reputation. (Sorry...I'm still relatively new to posting on here.)
I am in need of importing custom roads into Google Maps, (ie: new roads that may not yet be visible in Google Maps) and I would like them to be included in the Directions Service API. The approach I was thinking about first, was to use Google Maps Engine to import a shapefile containing the road data of what I need and create a map based on that. Then I would use the Directions Service on the data in that Custom Map. I am very wary as to if this will work, and as far as I can tell there isn't a trial version of Google Maps Engine that I can use to test this out. And I really don't want to purchase it if it isn't going to work anyway.
Does anyone know if this way will work, or if there is a similar service that Google provides that will work for what I require?
I assume I will need to implement my own directions service if I want to do this, but I want to see if there already is a service out there that will instead.
Thanks!
EDIT:
To try and clarify:
I want to import a set of custom roads obtained by an alternate source. These roads are in a shapefile format and are more up-to-date than some of the roads on Google. What my goal is, is to use the existing google roads, and "merge" the data that I have where necessary. Say in the far north of Alberta Canada a company has put some roads in for getting to their oil site. I want to import those roads and be able to tell our drivers how to get there. They would take a main highway that google already has, and then turn onto a road that doesn't show up on google because it is too new. This is where the alternate data set of roads would come in.
I want to find the best way to do this, while obtaining directions that incorporate those new roads. I understand that this may not be possible using google services, but I am asking in case someone else has come across this problem.
I guess I should update this to my solution, in case anyone else was wondering the same thing. The answer is NO, currently there is no way to import custom data like roads into Google Maps and have them be included in the directions service. I have talked to a Google representative on the phone, and they have let me know this.
I had to implement my own routing engine, which I did using PostgreSQL, PostGIS, and PgRouting.
in my asp.net application i need to display on a map (google map but i also have a shapefile of the roads ) the locations of about a thousand car accidents.
This is my very first approach with this world and i'm getting confused.
I can see a long list of framework and libraries ( OpenLayers, SharpMap, GoogleMaps Api, etc... ) but i dont' know which is the best for my pourpose.
Could you please help me to find the way?
Thanks.
If you're just trying to add markers to the map it's really easy, have a look at the Marker examples on this page. (View the source.)
Try the answers to these questions:
Google Maps - Easy way in ASP.Net?
Best .NET Wrapper for Google Maps or Yahoo Maps?
ScottGu suggests this how-to article.
And here's a Code Project how-to.