这是indexloc提供的服务,不要输入任何密码
Skip to content

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

@idanya

Description

@idanya

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    triage meI really want to be triaged.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions