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

multiple points is not returned in Roads speed_limits #5

Open
vanitu opened this issue Aug 25, 2016 · 0 comments
Open

multiple points is not returned in Roads speed_limits #5

vanitu opened this issue Aug 25, 2016 · 0 comments

Comments

@vanitu
Copy link
Contributor

vanitu commented Aug 25, 2016

I've found that Roads api method "speed_limits" returns just one limit, which is only for last placeId in array.

`
path=["ChIJvcoGi0CuEmsRiNyOd0yS3jM", "ChIJvcoGi0CuEmsRidyOd0yS3jM", "ChIJVYG98UCuEmsRMIWO5md9ARM"]

@gmaps.speed_limits(path)
=> [{:placeId=>"ChIJVYG98UCuEmsRMIWO5md9ARM", :speedLimit=>40, :units=>"KPH"}]
`

Quick investigation shows that query cut at Hurley stage. As @edwardsamuel is already in process to exchange Hurley inside develop branch. fix is coming.

Proposal do add check on number of retuned locations in Rspec test.

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

1 participant