Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Server side Direction API response cannot be loaded to DirectionsRenderer in the client #1287

Open
idanya opened this issue Nov 27, 2024 · 0 comments
Labels
triage me I really want to be triaged. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.

Comments

@idanya
Copy link

idanya commented Nov 27, 2024

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.

@idanya idanya added triage me I really want to be triaged. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. labels Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage me I really want to be triaged. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Projects
None yet
Development

No branches or pull requests

1 participant