Google maps traffic prediction API V3 - google-maps-api-3

Is there a way to implement the google traffic prediction described in the link, with the maps api?
maps traffic prediction

the question and the accepted answer are from 2012.
Since October 2015 it IS possible to get routes and predicted travel times for future trips.
You can supply departure_time with your route plan request. Note that this feature only works if you connect using an API key.
It's based on historical data, and when the trip is in the near future, it uses live traffic data.
https://developers.google.com/maps/documentation/directions/intro#RequestParameters

No. Here's the API documentation: https://developers.google.com/maps/documentation/javascript/layers#TrafficLayer
Traffic prediction is not part of the API. It is included in Google Maps (their own, not others' maps via the API), so it will be possible to use undocumented calls to get the data. But they don't like people doing that and it could have unintended consequences.

Related

Can I switch my Google Analytics property from GA4 to UA?

For some reason PowerBI does not accept GA4 as a connection, so my data is stuck in GA4.
PowerBI does support Universal Analytics (UA), but I cannot find a way to convert my GA property.
Is there a way to do this or should I start over again and create a new property as UA?
PowerBI currently doesn't support GA4 as a destination because the underlying api is not product ready yet. See the response in the microsoft power BI community here: https://community.powerbi.com/t5/Desktop/Power-BI-Google-Analytics/td-p/1679530
For information about the api's and their current state:
This is a link to the api documentation the plugin is using (for universal analytics): https://developers.google.com/analytics/devguides/reporting/core/v4
This is a link to the api documentation of GA4 (which is still in beta): https://developers.google.com/analytics/devguides/reporting/data/v1
Regarding a solution for your issue:
In GA4 is it possible to export data to big query, which can be processed there and imported to PowerBI: https://learn.microsoft.com/en-us/power-bi/connect-data/desktop-connect-bigquery
The export only works from the moment you enable it, so it is not possible to access the data this way before the enablement.
Second option is using data studio to connect to your GA4 data to be able to access the data you have measured before.
First off as everyone says you cant change the type of your Google analytics account if it was created as UA then its UA if it was created as GA4 then its GA4. There is also no way to exxport data.
Now lets look at the underlying cause of your problem Google analytics connector in Power BI Desktop rely on the Google Analytics Core Reporting API this API is used to extract data from Google Analytics UA accounts. There is a very big difference between the underlying data structure of a UA account and a GA4 account they are not completable in any way shape or form.
Thats why the Google analytics team is currently developing the Google analytics data api This api has the ability to connect to Google analytics GA4 accounts and extract data. At the time this post was created Power BI Google Analytics The Google analytics data api had just been released and was still in alpha test phase as you can see from the change log this API is still under development. I haven't checked but it looks like it may even be out of beta now. (TBH I am not really sure of the exact date it was released publicly as I have been in the alpha test group for a long time.)
However that being said a lot of the client libraries used by this api are still under development as well Google .Net Client library for Google Analytics Data API for example is still in beta. At the time that post was written i am almost 100% sure the client library had not been released.
This means that any power bi connector is probably not going to be released until both the API and the client library are considered stable. I know the team is working hard on the API and I Haven't seen any breaking changes in a very long time.
So to the user who added a bounty to this looking for an updated answer.
IMO I don't think you have long to wait before everything is stable enough for applications like the Power BI to start appearing that support GA4. That is assuming that someone creates one.
You can't covert GA4 to UA (or UA to GA4).
In your case you can create a new UA Property and start to track in it:

Is there anyway to query data from the past on HERE api? (e.g. traffic data from L.A. last week wednesday at 2 p.m.)

I've checked the docs, but I found nothing. Is there a way to query data from the past. Is this a feature that is available through premium accounts?
Direct access to historic traffic data is not available via the developer portal. Please use the contact form to reach out to a HERE representative. (That said, historic traffic data is taken into account for features such as routing, e.g. when asking for a traffic enabled route in the future.)

How to get Historical Traffic Data from Here API

Was looking at using the Here API to get some historical traffic data. Their website says they have historical traffic data, but I don't see a way to access it via their API other than getting a time-aware route, which takes historical traffic into account but doesn't give me info about it. Does anyone have any suggestions?
Several years is not accessible through these APIs.
Ask to be contacted from contact form on developer.here.com
use REST API from Fleet Telematics Advanced Data Sets with layer TRAFFIC_SPEED_RECORD_FC1...5
Online documentation is there:
https://developer.here.com/documentation/versions
look for "Fleet Telematics Advanced Data Sets"

GET Goals from Google Analytics using API Method with Date Range

I am trying to get the goals from our google analytics account but applying a date range. I haven't seen in the documentation a way to pass a date range for this method. Any help would be appreciated! Thanks!
Testing using their API test page here: https://developers.google.com/analytics/devguides/config/mgmt/v3/mgmtReference/management/goals/get
GET https://www.googleapis.com/analytics/v3/management/accounts/accountId/webproperties/webPropertyId/profiles/profileId/goals/goalId
When I pull the request using the their test API page, I am assuming it is only pulling the goal conversions for the day I am making the request, not for all of time.
I think you might be confusing the reporting api with the management api.
If you want to get data out of GA, use the reporting api.
If you want to configure GA or read GA configurations, use the management api.
In your case, you want to REPORT on the goals, but you're using the management api to do so.
You should use the reporting API to get a list of goals completed.
Reporting API reference/documentation: https://developers.google.com/analytics/devguides/reporting/core/v4/

Can Google Endpoints be used as an API gateway for a SaaS product?

I have gone through the documentation on Endpoints and Quotas, but I still cannot figure out what the scope of Google Endpoints is.
Since I don't know a better way to phrase it, let's take the example of a SaaS company that, for a monthly fee, will provide customers with stock data through a REST API. They have different packages, from Enthusiast (for $10 per month) to Enterprise (for $1000 per month).
Would Google Endpoints be a suitable API management tool for this fictitious company?
Can you create an interface for API token management?
Can you set quotas based on the package that your customers are paying for?
product manager for Google Cloud Endpoints here.
We do not have quite the feature set that you need yet. We've got some features in the works (you'd need developer portals with log-in and key generation and monthly quotas) as we work on alignment with our Apigee product. There will be some progress this year, but no dates that I can speak of yet.

Resources