Skip to content

multiple points is not returned in Roads speed_limits #5

Description

@vanitu

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions