We are going to use HERE Routing API to calculate a route in bus mode with route shape. Our use case: we know coordinates of bus stops but we need route shape between them. Bus mode take into account taxi/bus restricted streets as well as streets reserved for exclusive taxi/bus access and this is exactly what we need. But also we need take into account traffic data (live or typical) for this route, for specified departureTime. Can we get this info by HERE Routing API? For example, as durationInTraffic of route like google does? If no, is there any other HERE api to get such info? We saw HERE Traffic API but it looks like it provide full info about some area to draw it on map, not for route.
Yes, it takes if you pass departure time as request param, see https://developer.here.com/documentation/routing-api/8.20.0/dev_guide/topics/use-cases/departure-time.html
What is the maximum number of waypoints you can have with the Routing API?
I am looking to have a starting location and then add up to 500 waypoints and have it optimize the route.
Is this possible with the Routing API?
We only support GET method, POST will allow more, but it is not (yet ) supported currently support whatever URL length limits allow.. So something like 100+ waypoints ,But for optimising the route, there is a separate service which solves this.
We have a REST API implemented as a Cloud Service, that sends telemetry to Application Insights. And we use commands like
POST /api/groups/GRP_75e0b852-ee21-45fb-b943-13aa465c62da/members.
POST /api/groups/GRP_75e0b852-ee21-45fb-b943-13aa465c62da/folders/FLD_080af364-ad37-4351-837e-4fb1d5f02e50/discussions
The sections of the command preceded by GRP_ and FLD_ are parameters.
This makes looking at the breakdown of requests in Application Insights difficult since those requests show up individually.
I’ve implemented an ITelemetryInitializer that “normalizes” the Context.Operation.Name (and the Request URL) in our requests. But I see that those request are showing up bucketed as “Other Values”.
Requests with Other Values
Is there any way to reset the "bucketing" of the top-level list, or do I need to get a new AppInsights instance?
Standard dimentions like request name should be reset after a week. So if you stopped collecting parameters in the names it should clear up after a week. Current limit is 1000.
I have a list of Port origin and destination location for marine transportation.I want to estimate the average time taken to travel from one port to another. I just came across the webservice request provided by Vesseldistance.com
How to call this web service from R and Is it possible to send bulk of port origin and destination locations to estimate the avg time taken to travel?
Yes, for example using httr you can wrap their sample GET request into a call form R:
httr::GET("http://vesseltracker.com/FILE?user=foo&pass=bar&fromLon=9.9&fromLat=53.54&toLon=47&toLat=11&speed=20&startTime=1&numOfRoutes=ALL")
Unfortunately their API is not documented very well.
I was trying to use Google Distance Matrix API JSON in my project, after formatting the url, for example:
http://maps.googleapis.com/maps/api/distancematrix/json?origins=Vancouver+BC|Seattle&destinations=San+Francisco|Victoria+BC&mode=bicycling&language=en&sensor=false
I was able to view the result in browser, but when I tried to make a http request to get the result, I will receive status : REQUEST_DENIED
In documentation:
REQUEST_DENIED indicates that the service denied use of the Distance
Matrix service by your application.
But I still don't know why my request is denied. More Info from google:
Use of the Distance Matrix API must relate to the display of
information on a Google Map; for example, to determine
origin-destination pairs that fall within a specific driving time from
one another, before requesting and displaying those destinations on a
map. Use of the service in an application that doesn't display a
Google map is prohibited.
If I can't get the result, how can I apply it on google map?
Anyone with same problem? I will post sample code later, to clarify my question more clearly.
I had a similar problem, but it was due to assuming that the sensor tag would default to false, but it is in fact required.
Google Distance Matrix API has a limit of elements set to 2500.
I highly doubt it that you would have gone over this limit, as you would have to have calculated the maximum 10 x 10 matrix 25 times over.
I am from South Africa, and it refused to work for any local addresses until I changed the transport mode to driving (from walking, I mean seriously, we have cars). Maybe that'll help
https://maps.googleapis.com/maps/api/distancematrix/json?origins=Seattle&destinations=San+Francisco&key=YOUR_API_KEY
Please make sure that you have created a credentials on Google Console which can be called as "API KEY" and you are using this API KEY in above request URL on the place of "YOUR_API_KEY"
I had the same problem earlier.
you need to check out with the Google Api key version and codes/scripts of version you are using.
I believe you need to get a Google Maps API key
You need to set an API KEY for using Google map services like this:
https://maps.googleapis.com/maps/api/distancematrix/json?units=imperial&origins=Washington,DC&destinations=New+York+City,NY&key=**YOUR_API_KEY**
First thing is that you need is to have an API key assigned to your application. This is done by creating it in the Google API Manager.
I hope your have enabled distance matrix API from google console for your application.
please refer
https://support.google.com/googleapi/answer/6158841?hl=en
along with this you can restrict API_KEY for unauthorized use.