Hello,
I'm using "@googlemaps/google-maps-services-js": "^3.4.0"
I'm trying to use Directions API on the server side and pass the directions() response to the client to render. This is done so the client can stay lean and keyless while the server decides when the directions need to be recalculated.
Due to a different schema, the response returned (DirectionsResponseData) cannot be set in the client using setDirections().
Not sure if this is intended and how to resolve the issue. A manual transformation might be possible but I want to make sure I'm not missing anything and understand the reason for the diff.
Hello,
I'm using
"@googlemaps/google-maps-services-js": "^3.4.0"I'm trying to use Directions API on the server side and pass the
directions()response to the client to render. This is done so the client can stay lean and keyless while the server decides when the directions need to be recalculated.Due to a different schema, the response returned (
DirectionsResponseData) cannot be set in the client usingsetDirections().Not sure if this is intended and how to resolve the issue. A manual transformation might be possible but I want to make sure I'm not missing anything and understand the reason for the diff.