I am new to google Map Api V3, and i am planning to find the best route among some waypoint.
I found that the direction API could solve my problem (http://maps.googleapis.com/maps/api/directions/json?...)
I got the Json output, but is there any way to display the route on Google map directly?
Or i should parse the Json, get the legs information, and plot it again??
Thanks a lot
Related
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.
I have a google maps api where after displaying the map I am going to insert a few markers.
On click of these markers, I am bringing data regarding that marker.
Now the problem is I want the wind speed also for that marker .I got response from one of the architects in stackoverflow that google weather api is no
longer maintained by google and deprecated.
Is there any to achieve this without using any paid external plugins?
Have a look at the API from: http://openweathermap.org/ that should help you out.
I have a saved google map in 'My Places', with over 100+ pins added for locations around the UK. Is there any way I can avoid having to use the embed feature to display this map on a webpage, sort of calling the saved map by ID via the google API?
Essentially what I want to do is get access to google's new visual refresh and be able to control the settings of the map more with API.
The map link is this: https://maps.google.co.uk/maps/ms?msid=207590858966548688521.0004aa52150024d3431b2&msa=0
Can we parse anything here...?
You can overlay the KML output by MyMaps using a KmlLayer in the Google Maps API also:
your MyMaps data displayed on an API based map
Updates in MyMaps will (eventually) be reflected on the map.
Using https://mapsengine.google.com I was able to import the maps data and utilise the pins that way. Not ideal, but still some better functionality.
I'm using Google Directions API to get directions between 2 locations. I'm able to get the Webservice response (json) and draw a line over the map.
However, I noticed that the direction steps are quite less in the response thus making the lines not follow exact road curves. This is for any location, for example.
When I search the locations on Google Maps, I can see lines drawn exactly over road curves.
The steps received in the Webservice response are the turn points where the user's direction will change.
I now tried to get the polyline from the webservice response and extracted coordinates with code provided here. Problem resolved!
how to parse json response that we get from google map api and how can we show the particular location on map.
suppose i have entered one location name(i.e NewYork) and for that i have received json response,how can i show it on the map.
please provide help as i have never used google map api and json also.
Whole bunch of examples here: http://code.google.com/apis/maps/documentation/javascript/v2/demogallery.html
My advice? Find the simplest one closest to what you want to do and view source.
Edit: missed the j2me tag. This advice is inapplicable. Sorry about that.