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

Max destinations? #14

Closed
krjo opened this issue Apr 11, 2020 · 2 comments
Closed

Max destinations? #14

krjo opened this issue Apr 11, 2020 · 2 comments

Comments

@krjo
Copy link

krjo commented Apr 11, 2020

If you have more than 25 locations in our json file this will not work. Is there a work around or another solution for calculating distances for more than 25 stores? Or is it possible to get only the destinations that are in view at the current zoom level?

@wangela
Copy link
Collaborator

wangela commented Apr 28, 2020

The 25 store limit is due to the Distance Matrix API's limit of a max of 25 origins or 25 destinations per request. The "Filtering the data" step of the NYC Subway Stations Locator codelab has logic for displaying only the stations within the visible bounds of the map, and the step after that teaches you how to cluster groups of markers.

@wangela
Copy link
Collaborator

wangela commented Nov 25, 2020

Duplicate of #12

@wangela wangela marked this as a duplicate of #12 Nov 25, 2020
@wangela wangela closed this as completed Nov 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants