googlemaps / googlemaps/google-maps-services-js

Distance Matrix URL returns ?origin=*&destination=*key=* instead of ?origins=*&destinations=*key=*

Open
#928 1 comment 0 reactions 1 assignee Claimed by @wangela View on GitHub
triage me type: bug
Dominant language
TypeScript
Stars
3.1k
Forks
654
Avg merge
3m
Merged PRs (30d)
4

Description

When making a distancematrix() request the URL that is returned is incorrect as it has "origin" and "destination" instead of "origins" and "destinations".

This returns status 'INVALID_REQUEST'. If I copy the URL in to a browser and change origin to origins and destination to destinations in the url data is pulled correctly.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.