googlemaps / googlemaps/google-maps-services-js
Server side Direction API response cannot be loaded to DirectionsRenderer in the client
- Dominant language
- TypeScript
- Stars
- 3.1k
- Forks
- 654
- Avg merge
- 3m
- Merged PRs (30d)
- 4
Description
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.
Contributor guide
Assessment
This issue has not been assessed yet.