I am trying to implement a route calculator with the HERE API. I should show the toll costs of the given route for the user. However, I have some questions, I could not find any answer in the documentation for:
Are the given toll costs net value, i.e. is VAT included or not? Based on my test requests, it looks like there are some countries where VAT is included, and it is excluded in others. Are there any arguments in the result from HERE providing information on this?
One can specify the currency in which the costs are calculated, but I could not find any information on the exchange rates applied. I would like to show this also for the user. Is it possible to get this in the result, too? Or maybe is the source of this data public?
As the toll costs and the toll roads may change over time, I would like to also show the time of data for the user. Is there any argument for this given back by HERE in the result?
I assume you are using the HERE Fleet Telematics API.
VAT is expected to always be included. No, there is no such argument in the API.
No, you cannot get this information in the results. The only trick I can suggest, is to make 2 consecutive calls to the API, one using the first currency and another one using the second currency, and therefore derive from these results the applied exchange rate.
There's no such argument. You should assume that HERE's toll cost data is always fresh.
Toll cost calculation is provided via Here Fleet Telematics API.
Total toll cost includes the VAT
And as per the documentation the below details can be retrieved.
In addition, toll cost detail can be requested on different levels, using the "rollups" parameter:
a. total summary only
b. cost per road link
c. cost per country
d. cost per toll system
Exchange rates are not provided rather currency can be provided.
There is no history of route calculation provided , all the data that are provided are latest.
Related
like Ola, Uber etc. how they calculate fare
Example when I start from one point to another (like 1 to 2km) shows amount that is 40 rs
how they calculate use map distance in code or something else in code can u please explain how it work? Simply how it works fare system works?
This is lifted directly from the Uber website:
Many data points go into calculating an upfront price, including the
estimated trip time, distance from origin to destination, time of day,
route, and demand patterns. It also includes tolls, taxes, surcharges,
and fees (with the exception of wait time fees).
Some cities do not provide upfront prices. Instead, you’re charged
either a minimum price or a price based on the time and distance for
your trip’s route, which may include a base fare, a Booking Fee,
surcharges, tolls, and dynamic pricing. Prices may vary by location,
the vehicle option you select, and other factors.
So it sounds like a combination of any relevant data points your app is able to collect and that you feel should be considered billable are applied to the calculation. I imagine you would want to use the map distance rather than a predefined route in case of detours, traffic, etc.
For any given route e.g. Brooklyn, NY to Seattle, WA, I need to calculate amount of miles we drove via each state.
I have tested multiple routing APIs and non of them return anything I could use in calculation. (I testes MapQuest, google and TomTom)
I spoke to HERE.com sales rep and he told me HERE-apis return that info but after running test calls it does not look to me that this is the case.
Does anyone know how to format query on HERE-api to get info I am looking for or any other way?
HERE Routing API does not support a feature to calculate to calculate the sum of amount miles grouping by State level. But probably you can do post process for the calculation the sum of amount miles based on road network in State level.
I am working with Telematics API https://fleet.ls.hereapi.com/2/calculateroute.json to calculate the toll costs. Can I please ask if anyone has used or aware if there is a special parameter to denote one way or round trip. I am using waypoints to represent round trip as in waypoint0 = source, waypoint1=destination, waypoint2=source to represent my round trip. The values returned are high compared to the ones indicated by local teams who use that toll regularly
As example 59.9133301,10.7389701 -> 60.6244351,11.3831208 -> 59.9133301,10.7389701 shows 816 NOK but real value is only 660. A one way from 59.9133301,10.7389701 -> 60.6244351,11.3831208 shows 340 NOK which may be right
So is there another way on API to ask for toll cost combined for both directions?
Thank you for your assistance
Please share you complete request. I am unable to reproduce the issue.
You can refer to these example request:
Round Trip request :
https://fleet.ls.hereapi.com/2/calculateroute.json?jsonAttributes=41&waypoint0=59.9133301,10.7389701&detail=1&waypoint1=60.6244351,11.3831208&waypoint2=59.9133301,10.7389701&maneuverAttributes=none&linkAttributes=none,sh&legAttributes=none,li¤cy=NOK&departure=&tollVehicleType=2&trailerType=0&trailersCount=0&vehicleNumberAxles=2&trailerNumberAxles=0&hybrid=0&emissionType=5&fuelType=petrol&height=1.67m&trailerHeight=0&vehicleWeight=1739&limitedWeight=1.739t&disabledEquipped=0&minimalPollution=0&hov=0&passengersCount=2&tiresCount=4&commercial=0&heightAbove1stAxle=1m&width=1.8m&length=4.41m&mode=fastest;car;traffic:disabled&rollups=none,country;tollsys&&tollPass=transponder&apikey=<apikey>&jsoncallback=parseRouting
Result TollCost: 244.8
One way request :
https://fleet.ls.hereapi.com/2/calculateroute.json?jsonAttributes=41&waypoint0=59.9133301,10.7389701&detail=1&waypoint1=60.62544,11.37563&maneuverAttributes=none&linkAttributes=none,sh&legAttributes=none,li¤cy=NOK&departure=&tollVehicleType=2&trailerType=0&trailersCount=0&vehicleNumberAxles=2&trailerNumberAxles=0&hybrid=0&emissionType=5&fuelType=petrol&height=1.67m&trailerHeight=0&vehicleWeight=1739&limitedWeight=1.739t&disabledEquipped=0&minimalPollution=0&hov=0&passengersCount=2&tiresCount=4&commercial=0&heightAbove1stAxle=1m&width=1.8m&length=4.41m&mode=fastest;car;traffic:disabled&rollups=none,country;tollsys&&tollPass=transponder&apikey=<apikey>&jsoncallback=parseRoutingResponse
Result toll cost 113.6
Back to source
https://fleet.ls.hereapi.com/2/calculateroute.json?jsonAttributes=41&detail=1&waypoint0=60.6244351,11.3831208&waypoint1=59.9133301,10.7389701&maneuverAttributes=none&linkAttributes=none,sh&legAttributes=none,li¤cy=NOK&departure=&tollVehicleType=2&trailerType=0&trailersCount=0&vehicleNumberAxles=2&trailerNumberAxles=0&hybrid=0&emissionType=5&fuelType=petrol&height=1.67m&trailerHeight=0&vehicleWeight=1739&limitedWeight=1.739t&disabledEquipped=0&minimalPollution=0&hov=0&passengersCount=2&tiresCount=4&commercial=0&heightAbove1stAxle=1m&width=1.8m&length=4.41m&mode=fastest;car;traffic:disabled&rollups=none,country;tollsys&&tollPass=transponder&apikey=<apikey>&jsoncallback=parseRoutingResponse
Result tollcost 131.2
Toll cost of route (1) = toll cost of route (2+3)
I am currently using the Google Places API on a free trial. I am interested in paying for the API but can't find the exact cost of the two commands that I use: google_places(), and google_place_details(). I have contacted the Google sales team and looked at the places and billing url, but I have not managed to find the answer of how much it would cost exactly to execute these two commands.
For google_places(), this is an example of a command I would execute:
google_places(search_string = "Cafeteria in Madrid, Spain", key=key)
From the places and billing url, it seems like this counts as a text search, so each time the code is executed it would cost 0,032$. Is this the case?
For google_place_details(), here is an example of the command I would execute:
google_place_details(place_id = "ChIJf_XA-F0U04kR1IPYSdTJ4so", key=key)
This command, as well giving basic place details (which cost 0,017$ according to the billing url),
gives information which counts as contact data (an extra 0,003$) and atmosphere data (an extra 0,005$). It also provides photo data (0,007$ according to the billing url), which I am not interested in but is automatically included in the results anyway. Does this mean that the cost of executing this command once is these four prices summed up?
I am interested in knowing exactly how much it would cost to execute the two commands I have listed.
probably this helps:
First of all you are billed monthly after you exceeded the 200 Euro/Dollars, which are given by google for free (as you probably described as "free plan"). So after every month you get a bill on how many requests of each function you send to google. There everything is written quite clearly including the amount and price of each "unit". then you can easily divide it.
Second option would be your Google Api Cockpit.
It tracks your requests quite precisely on different time bases. So sending your wanted commands only once on a day can give you an exact total-price.
The Cockpit is super handy for different things. If you want you can even set limits, which is probably helpful in your case too.
Here is the link to the billing monitor as well: Billing Google API Cockpit
Furthermore the description of how google charges you. Look here
best regards
If I make a request to the Google Analytics API using only the metric "ga:users", the result is different to the one that is returned in the "totalsForAllResult" field when I add a dimension.
Does anyone know the explanation for this and which is the correct result?
You cannot sum up the user counts per dimension and get a gross total as one and the same user can appear in multiple dimension values. For a detailed explanation look here. If you want to get the total users value, repeat the API request w/o the dimension. Apparently, Google does the mistake of blindly summing the values themselves in the totalsForAllResults field of the response of the Core Reporting API which can be highly misleading.