govitia / navitia

A client library in Go for the Navitia API (navitia.io) (v2 WIP)
The Unlicense
6 stars 2 forks source link

Fix "selector" mismatch in ExploreResource #14

Closed adelcasse closed 7 years ago

adelcasse commented 7 years ago

There was an issue with "selector" overriding the function's parameter also named "selector"

For example, if you want "lines" in ResID "stop_area:SIN:SA:OCE87757674", the request will be sent to URL : http://navitia.scity.coop/v1/coverage/default/stop_areas/stop_area:SIN:SA:OCE87757674/stop_areas?depth=0&disable_geojson=true

Instead of : http://navitia.scity.coop/v1/coverage/default/stop_areas/stop_area:SIN:SA:OCE87757674/lines?depth=0&disable_geojson=true

aabizri commented 7 years ago

Oops. Merged ! Thanks for the PR.