I am doing a road traffic analysis and prediction a project.
In this i am using maps of locations using lat,long .
i want the traffic layers between source a and source b .
for example consider pes university as source A , ISRO layout as source B,
I want the traffic layer between source and destination. How can i get that?
I'm afraid Google Maps API doesn't expose traffic data between two points.
Note that there was a feature request for traffic data in Google issue tracker:
https://issuetracker.google.com/issues/112008136
Unfortunately, Google rejected this feature request with the following answer
Thanks for your post.
However, this request does not fit in any of the Maps APIs scope / offering.
The Maps JavaScript API does offer a Traffic Layer for visualizing traffic on a map:
https://developers.google.com/maps/documentation/javascript/examples/layer-traffic
The Directions API offers duration_in_traffic for each route.
Exposing traffic data in other forms is not in the scope of the Maps APIs.
Related
I help develop a desktop app that displays map information with various layers on top. Now we want to add the Google Maps traffic layer. We do have a developer API key.
How can I use the Google API without a website, to generate just the data layer I need and download it in KML or GeoRSS or any other format so I can use it in the desktop app on top of my own map?
We already use the distance matrix, geocode, and directions API. Is there a traffic API as well, or are traffic data only available for embedding on a website?
Traffic data is not available as separate API. You can only use TrafficLayer of Maps JavaScript API or Android SDK.
There is a feature request in Google issue tracker to expose these data as an API:
https://issuetracker.google.com/issues/36537583
However, it looks like Google didn't set high priority on this task. Feel free to star the feature request to add your vote and subscribe to notifications from Google.
I hope my answer clarifies your doubt.
Currently, I'm working on a Mapping Project , and I'd like to know if there's a way to know how many lanes in a single road (same direction), using one of Maps API, like google map. Because at the end I have to display if a lane is blocked, which kind of vehicles can go on a lane, and also the speed limit. But for now I just need to display the number of lanes.
For my application, I'm using Xamarin and Xamarin.forms.maps to display the map and also the Plugin.geolocator for some geolocation informations.
This feature has been requested in the Issue Tracker of Google Maps APIs. However, the request has been rejected as it will violate the compliance of the Google Maps Platform Terms of Service.
They said in the request:
Unfortunately, exposing this in the Directions API would encourage use
of the Maps APIs in ways that would not be in compliance with the
Google Maps/Google Earth APIs Terms of Service at
https://developers.google.com/maps/terms#10-license-restrictions
10.4 Restrictions on Unfair Exploitation of the Service and Content.
c. Restrictions on your Maps API Implementations.
iii: No navigation. You will not use the Service or Content for or in
connection with (a) real-time navigation or route guidance; or (b)
automatic or autonomous vehicle control.
You may check the Feature Request here.
This is only applicable to Google Maps Platform, I'm not sure though with other Maps provider. Hope this helps.
When we use google maps in 3D at Google earth, it shows building heights and structures' actual heights in elevation data. However, the google elevation API provided by google results only ground elevations and not the actual elevations of buildings on ground.
I tried scraping this data from google earth's web portal, but they transfer packets between server and browser highly encrypted, and that failed.
Can you please suggest any way to find this elevation data I am looking for?
This feature is currently not available in Google Maps Elevation API, the Elevation API currently supports the ground elevation but not the establishments. However, you may file a Feature Request in the Google Maps Issue Tracker and share your use case there in order for the engineers to review the feasibilty of your request.
I am using predix map components to render map. And I want to add local traffic information on the map, which need the traffic data to render the traffic layer. But it looks like google maps has no such web api for developers to get JSON or XML type traffic data.
So, I really want to know if Google can provide this web api?
I recently started a google maps API course with Udacity, one of the questions involves geocoding and I have hit a brick wall with it.
the task that I have asked to do is "Using geocode WEB SERVICE request in your browser find the fun place that the following coordinate describes"
the coordinates being LAT:33.1262476 LNG:-117.3115765 the videos on the course didn't go into to much detail.
Any help?
Read about Google's geocoding API, and in particular the reverse lookup of lat/long coordinates -> addresses and/or named locations.
https://developers.google.com/maps/documentation/geocoding/intro#reverse-example
For your case, it will be something like making a request to this URL:
https://maps.googleapis.com/maps/api/geocode/json?key=YOUR_API_KEY&latlng=33.1262476,-117.3115765
Note that YOUR_API_KEY is something you'll have to create by registering a Google developer account (which is free).