onSuccess
Called when a routing request completes successfully.
Parameters
routeResponse
the RouteResponse containing the calculated route details. This response object provides data such as the list of route segments, estimated duration, and any additional metadata.