For routes that start and end in the US, HERE fails to suggest a route that goes through Canada even when I choose 'mode=fastest', and via Canada would clearly be the fastest route (traffic disabled).
e.g. Detroit to Buffalo
HERE We Go
HERE Routing API gives the same as HERE We Go. I use traffic disabled, hence a route through Canada is definitely the fastest: https://route.api.here.com/routing/7.2/calculateroute.json?waypoint0=42.33239,-83.04887&waypoint1=42.95594,-78.90584&mode=fastest;car;traffic:disabled&app_id=______&app_code=____
These places are just inside the US border. If I edit one co-ordinate to fall just inside the Canadian border, a route through Canada is recommended.
I can't find any restrictions that seem to be applied that would prevent routes going through Canada. I've tried examples in other countries which seem to be fine (e.g. a route starting and ending in Sweden was chosen to pass through Norway). What is going on here?
Can you please use fleet telematics with advance mapping options. Also if waypoint doesn't work, you can pass link ID or street to get the accurate result. please refer below documentation for more reference.
https://developer.here.com/documentation/fleet-telematics/api-reference.html
Also report the map team if the route is still incorrect using feedback API :
developer.here.com/documentation/map-feedback/dev_guide/topics/quick-start-submit-feedback.html
I'm trying to calculate route summary for a truck using Fleet Telematics Custom Routes API (https://cle.api.here.com/2/calculateroute.json).
And I'm getting an error saying: Cannot match lat/long onto a road link with 100.0m search radius.
The error is, in fact, correct since Truck is in the middle of a big warehouse and there are no roads in 100 radius.
So the question is how can I increase search radius to prevent this error. OR there are any other options?
Thanks in advance!
You can add a radius parameter in meters after the position, ex for 500m:
waypoint0=geo!48.85718,2.34141;500
Source doc:
https://developer.here.com/documentation/routing/topics/resource-param-type-waypoint.html
I'm trying out the Distance Matrix API but I can't make it work for London Ontario. It always comes back with London UK. My HTTP request is https://maps.googleapis.com/maps/api/distancematrix/json?origins=Ajax+ON&destinations=London,%20ON&key=
All other Candian cities are coming back fine. I can resort to Lat and Lon but I just wanted to check if there is a workaround by using the city name.
Thank you for your help!
MJ
I am trying to replicate a google maps style in CartoCSS with Map box studio classic. A default google map has a light brown shading for the industrial area surrounding an airport (as in the screenshot)
Google Maps San Francisco Airport - the target style
Mapbox San Francisco Airport - the current style
The area "underneath" the airport is classed as #Landuse['industrial']. I'm looking for a method to give this area the light brown shading but leaving all other industrial areas unaffected.
I'm thinking down the lines of applying a style to any #Landuse['industrial'] which is in proximity to any #aeroway layer. So the question is: Is this possible and/or is there a better/easier way to achieve the desired style.
It's not possible to style elements based on their proximity in CartoCSS - that kind of geometric filter wouldn't be performant. If the landuse has a unique ID, the best way to solve this problem would be filtering by ID and shading this specific instance.
i just got some strange results for a geocoding query sent to the API.
http://geocoder.cit.api.here.com/6.2/geocode.json?prox=-42.48014%2C-73.762414%2C10000&searchtext=al%20%2C%20Castro%20%2C%20Castro%20%2C%20cl&app_id=XXX&app_code=XXX&gen=3&maxresult=100&language=es
so the location is properly found on http://here.com/-42.4801399,-73.7604828,17,0,0,normal.day
but the API-response includes totally different information.
{"Response":{"MetaInfo":{"Timestamp":"2014-08-13T06:41:28.518+0000"},"View":[{"_type":"SearchResultsViewType","ViewId":0,"Result":[{"Relevance":0.9,"Distance":1.00628071E7,"MatchLevel":"street","MatchQuality":{"State":0.71,"City":0.89,"Street":[0.85]},"Location":{"LocationId":"NT_zSCm7jYDz+HltoMoaXf6NA","LocationType":"point","DisplayPosition":{"Latitude":36.7596283,"Longitude":-121.7462616},"NavigationPosition":[{"Latitude":36.7596283,"Longitude":-121.7462616}],"MapView":{"TopLeft":{"Latitude":36.7616081,"Longitude":-121.7468719},"BottomRight":{"Latitude":36.7576599,"Longitude":-121.7456436}},"Address":{"Label":"Castro St, Castroville, CA 95012, Estados Unidos","Country":"USA","State":"CA","County":"Monterey","City":"Castroville","Street":"Castro St","PostalCode":"95012","AdditionalData":[{"value":"Estados Unidos","key":"CountryName"},{"value":"California","key":"StateName"}]}}}]}]}}
Could you give me a helping hand to solve this?
Best regards,
Matthias :)
The question is 10000km away from where? The geocoder request you are making is effectively:
Find me somewhere in the world with "al, Castro,Castro, cl" somewhere in the
address
The result obtained happens to be in San Francisco, California which may or may not be 10000km from anywhere, but just happens to be the best fit result to the request.
What you probably want is something like:
Find me somewhere in Chile with "Castro" somewhere in the
address
http://geocoder.cit.api.here.com/6.2/geocode.json?searchtext=Castro&app_id=XXX&app_code=XXX&country=Chile
or
Find me somewhere within a specified rectangle San Francisco, California with "Castro" somewhere in the
address
http://geocoder.cit.api.here.com/6.2/geocode.json?searchtext=Castro&app_id=XXXX&app_code=XXXX&mapview=37.7983366,-122.4006509;37.7904096,-122.3916387
These biasing effects can be obtained using the mapview, country and countryfocus parameters as specified in the API Reference