Hello!
I am trying to get the route from a field to a processing facility in California using the HGV profile. This code used to run a few months ago but no longer does.
field_to_processing=[[-121.88287, 38.89946], [-121.950475, 38.555606]]
route=client.directions(
coordinates=field_to_processing,
profile='driving-hgv',
radiuses=[10000, 10000]
)
… returns the error:
'Could not find routable point within a radius of 10000.0 meters of specified coordinate 0: -121.8828700 38.8994600.'
Changing the starting place to a point along a county road less than 3km away does return a route.
road_to_processing=[[-121.88287, 38.925229], [-121.950475, 38.555606]]
route=client.directions(
coordinates=road_to_processing,
profile='driving-hgv',
radiuses=[10000, 10000]
)
This route should be within the 10km radius of field_to_processing and I can’t figure out why it wouldn’t return this route on the first go.
Here’s a screenshot that shows the field coordinate and road coordinate (connected by the blue line), and the start of the road_to_processing route in red.
BTW the driving-car profile will return a route from the field to the processing facility but I would really like to use the driving-hgv profile.
Thanks in advance for your help
Cheers
Sarah