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?
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.
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.
I would like to know:
Is GTFS-realtime data available from the Google Maps Directions API?
If not, are there plans to include GTFS-realtime data in the Google Maps Directions API?
I am a member of a team developing a web application that integrates Google Maps Directions API. The website provides a "Trip Planner" form in which the user enters From, To, Date, and time data to display trip options into the website. Our website visitors are specifically interested in Bus transit options.
The integration is working wonderfully. However, the data returned by the Google API does not contain GTFS-realtime data. We know that the realtime is known to Google through GTFS feeds provided by the transit provider, and we see the realtime data when doing an identical search via https://www.google.com/maps.
I looked at the "Transit Specific Information" that is returned in the Google Maps API DirectionsResult Object (https://developers.google.com/maps/documentation/javascript/directions#TransitInformation). There is no reference to real-time information in this documentation. Even if real-time information is supplied (and I suspect that it is not), there would be no way to distinguish between scheduled and predicted times.
Is it possible to overlay an Esri Feature service onto a Google Map using the Google Maps API?
I am using feature services hosted on ArcGIS Online. Keep in mind these are feature services, not tiled map services.
From all that I've gathered, Google Maps only appears to only support tiled map rest services. Is this correct? Has anyone had success overlaying feature services?
If you've made it this far I'll give you a little background. Our systems developer has produced numerous applications using the Google Maps API, so it would be a burden at this point to rewrite everything in OpenLayers, ESRI API, Leaflet, etc. He wants to be able to consume our ArcGIS Online mapping services, which we store as features, aka. WFS. We really do not want to go the route of having to upkeep additional versions (tiles, KML, geoJSON, etc) of the same layers. I've been experimenting with on-the-fly Esri JSON to GeoJSON conversions, but I haven't had success. I'm about ready to call it and rebuild everything with the Esri API, but I figured I'd ask first. Our staff is really in love with Google Maps so it's going to be a hard sell.
Thanks
Yes, it's possible with ArcGIS Server Link for Google Maps JavaScript API V3
https://github.com/googlemaps/v3-utility-library/tree/master/arcgislink
You can retrieve both geometries and attributes from AGS through the REST API, using the Feature Class.
Alternatively, you can implement a Geometry Service on the server side and access it through GeometryService Class.
Check arcgislink documentation:
https://htmlpreview.github.io/?https://github.com/googlemaps/v3-utility-library/blob/master/arcgislink/docs/reference.html
It is viable, but it may have performance issue.
You can make a call to the feature service endpoint and get all the features back as JSON response. As Esri GeoJSON is different from the common one, you need to translate the JSON response to the standard GeoJSON format, and then add to the feature collection in google maps Data Layer and apply styles.
This works if you have simple datasets. However if it is complex large polygon datasets, it will be causing network traffic when making the call. Also Google maps data layer always have performance issue when dealing with large dataset.
I recommend to use dojo/esri js API to develop the app if the data is hosted with ArcGIS server. It just doesn't make sense to buy both licenses for visualization.
Another option is to enable your ArcGIS online data to serve WMS layer too. Through that way your developer can use google maps overlay layer to overlay tiles from ArcGIS online. You can also make standard XMl request to the WMS service to get feature information.
Ok. You can convert to GeoJSON, but you're right, there's some big performance issues.
I found the easiest solution to the problem was to rewrite all our Google Maps API using ESRI Leaflet.
https://esri.github.io/esri-leaflet/
Leaflet is much easier to implement than the standard ESRI API. Didn't take long to rewrite and have the same functionality.
What data can be extracted from google maps? It seemed to me that I can just poll information about places and geography through their api. I'm looking to pull down a map of a city from google maps and then make my own map from it in order to throw that data into a game engine. A brute force method would be extracting the bitmap images and then processing that information, but is there some standard of geographical information I should explore? And if so, can I get that information from google maps?
If you want your own copy of a map you might be best off looking at Open Street Map, the Google TOS will likely dissallow the use that you are looking for, while OSM is open source and you can download the entire data set at will should that be your desire.
For mapping applications I would look into QGIS, it's again free and a powerful tool.
You can extract datasets and metadata from Google Maps Engine for use on other platforms. You can use the Google Maps Engine API to programmatically access and download data and metadata/configurations from your Google Maps Engine account. This approach is best when you need to download a larger number of data sources from your Maps Engine account or if you’ve updated vector tables using the Maps Engine API.
To download data with the Maps Engine API, your application must handle OAuth 2.0 for authentication as well as the calls to retrieve data via the GME API.
So far the easiest solution in the data extraction industry is to use a Google Maps Web Scraping Template.
Google Maps web scraping template
is an advanced feature of the industry-leading free data extractor Octoparse. They built dozens of templates covering all popular websites, which are ready to use preformatted crawlers. You can use it to extract the business name, reviews, ratings, address, websites, phone number, and open hours, etc.
If you think the template doesn’t meet your needs, you can build your own crawler to extract other information.
Other advanced solutions to extract google maps data include using open-source projects on Github, using python framework/library, use a web scraper chrome extension, etc.
You can check out this article 5 Free Google Maps Data Extractors