Openrouteservice Error 4003: Routing service failed with status 404 Not Found

Hi, I am designing a maping APP and are having this error.
Looked around and found no clues.
The idea is to define route, distance and travel time for a selected destination from current position.

This is the complete APP:

The problem happens at the .Request Direction node (when map1.LongPressAtPoint)
Assistance welcome.
Thanks
Paulo Borges

1 Like

Hi friend, I’ve been looking for a solution to this problem for weeks and I’m still looking.

Sounds like a bug on the Kodular side.

Hi, I am trying to implement the idea using only Google Maps and got to the following point:

If you take the URL and use it in your Browser you will get a response from Google Maps:
https://maps.googleapis.com/maps/api/directions/json?origin=-22.541253,-43.181029&destination=-22.657646,-43.077204&key=YourGoogleMapsAPI

But I do not know enouth to use the JsonResponse to draw the route on the map.
I am working on that but if find you can help that would contribute for an alternative solution.

ChatGPT suggested the following:

when Web1.GotText
{
// Store the JSON response in a variable
set global jsonResponse to responseContent

// Parse the JSON to get the first route
set global routes to call JSONTools.getObjectFromJSON(global jsonResponse, "routes")
set global firstRoute to select list item list global routes index 1

// Get the overview_polyline object from the first route
set global overviewPolyline to call JSONTools.getObjectFromJSON(global firstRoute, "overview_polyline")

// Extract the "points" from the overview_polyline
set global polylinePoints to get property "points" of global overviewPolyline

// Decode the polyline into a list of latitude/longitude pairs
set global decodedPoints to call GoogleMaps1.DecodePolyline with polylinePoints

// Add the polyline to the Google Map
call GoogleMaps1.AddPolyline with points global decodedPoints

}

But I lack the knowledge to use the sugestion.

Maybe this post will help you