How to get the json file from an existing google map - json

I need to create a custom google map search tool. So i use google map API.
I'd like to know if it's possible to get the JSON from an other map build from the native google map managment system such as this one :
https://www.google.com/maps/d/viewer?mid=z7YNZSDcNAU0.kviSuto4ltCY
I want my client still use the managment system he knows.
Thanks for your precious help.

So i answer my own...
It's not possible. But in a way we can do this.
- Download the KML
- Use the google map geocoder to rebuild the lat & lng of all your point using the adress. (use a loop for example).

Related

Google Autocomplete Polygon as GeoJson

I'm trying to find in the Google Maps documentation a way to search for a place and get it's GeoJson polygon but I got no luck finding something like that.
My goal is to create a search bar to search places and then send the geojson polygon to our back-end. I don't want to draw it on a map or anything front-related.
Nominatim is doing exactly what I want but Nominatim policy is very restricted so before I go for an alternative, I wanted to check if Google Maps could provide the same (especially since searching for a country on Google Maps retrieve the polygon and draw it on the map).
Thanks for your help !
Unfortunately Google Maps APIs don't expose any polygons data of geographic features. You can see very old feature request in the Google issue tracker to add this functionality, however it looks like Google didn't set high priority on this task:
https://issuetracker.google.com/issues/35816953
Feel free to star the public feature request to express your interest and subscribe to further updates from Google.
You should get polygons from other sources.

Open source map

anyone can suggest what program / approach I should use?
I need to have a map like google map where I can display map, add marker polygon etc.
But I cannot rely on such online services as client is afraid that such service die off and there goes our system...
Have a look at lots of resources pointed in answers to these questions on GIS.SE:
GIS for the web
Steps to Start Web Mapping
You might want to look at Google Fusion Tables, or solutions like MapBox or CartoDB for quick, hosted solutions.
Willing to invest more time (and depending on your skills and language preferences) you could delve into PostGIS & GeoServer / Mapserver with a frontend of OpenLayers / Leaflet (or any other libraries). OSGeo-Live DVD might come handy for a quick and dirty review of most of these options.
Here are pure open source based web map and geo-location database resources. Google map or Bing map is wonderful, but they require business contract for commercial use. It is said that Foursquare recently switched their map tool from Google map to open source based Leaflet API which looks like the picture below. This map tools is quite great and recommendable.
web API for map : http://leafletjs.com/
Good place to start. Two resources below are not really used for developers, cause those are already included in leaflet javascript API.
Map style : http://cloudmade.com/
Map data : http://www.openstreetmap.org/
Geo location based on ip address : http://dev.maxmind.com/geoip/geolite
Can download free ip address & city mapping file, which can be used for custom mapping code.
I recommend http://mapserver.org/
You can create map files into you server...and you can connect to open source databases like PostGIS

pass KML to Google Maps

i found out that i can open google maps with a linkt to a kml-file like that:
http://maps.google.com/maps?q=http://econym.org.uk/gmap/example1.kml
that is exactly what i need, but i don't like to provide a public URL with the Data. Is it possible to pass the data with a post request or get parameter?
Or has anybody another idea how to create a link to google maps with multible markers?
Thanks in advance
Updated based on your comment: You could upload the KML to a Google My Map: maps.google.com->My Places->Create Map->Import. There isn't currently programmatic access to My Maps. Otherwise, maps.google.com requires a public server to host the KML data.

How to figure out the road assignment of gps points for a route?

Just wondering if there is a map matching API in google map/osm given a gpx file.
Thanks
What you are looking for is "reverse geocoding" (http://en.wikipedia.org/wiki/Reverse_geocoding).
Of course there are services like google (http://code.google.com/apis/maps/documentation/javascript/services.html#ReverseGeocoding) but you can found some open or free project.
Take a look to:
http://www.geonames.org/
and
http://openaddresses.org/

Using C++ with Google Maps API. Only text info required

Is it possible to call Google Maps API using a C++ code to retrieve text info about nearby locations.
I am trying to make a simple application (C++) which gives the information about Nearby places on entering longitude and latitude info. Only data I am looking for is the Name of Nearby place and its distance from mentioned location.
Is it possible?
I think your best option would be to use the Google Places API with the JSON format for request.
I don't know about any library that would perform the thing automatically, but there is a thread on StackOverflow about JSON parsing in C++ . Even it does not provide an answer it as good votes scores.
I guess the web call could be made with something like curl.