hove-io / navitia

The open source software to build cool stuff with locomotion
https://www.navitia.io/
GNU Affero General Public License v3.0
434 stars 126 forks source link

Pagination for departures at stop_area #2698

Closed tufftuff93 closed 5 years ago

tufftuff93 commented 5 years ago

Pagination for departures at stop_area doesn't show the total_result for the duration.

When I ask for the next departures for a specific day (24H) https://api.navitia.io/v1/coverage/fr-idf/stop_areas/stop_area%3AOIF%3ASA%3A59%3A5355357/departures?from_datetime=20190312T120000&duration=86400

image

I get the 10 next departures, but pagination object show a total result of 10 objects.

There is more than 10 departures this day: https://api.navitia.io/v1/coverage/fr-idf/stop_areas/stop_area%3AOIF%3ASA%3A59%3A5355357/departures?from_datetime=20190312T120000&duration=86400&count=30

image

So I try to browse the page 1 using the same urls https://api.navitia.io/v1/coverage/fr-idf/stop_areas/stop_area%3AOIF%3ASA%3A59%3A5355357/departures?from_datetime=20190312T120000&duration=86400&count=30&start_page=1

image

The departures list is empty and pagination show 0 items_on_page.

I have this behavior with navitia.io and with a local instance of navitia.

ArthurLeyv commented 5 years ago

Hi tufftuff93 !

Thanks for reporting this issue.

What’s your need in this case?

There are 3 ways to address this:

Just to let you know, support for navitia.io is mostly done on https://groups.google.com/forum/#!forum/navitia .

Hope this helps.

Arthur

ArthurLeyv commented 5 years ago

Hi @tufftuff93 ,

I close this issue, feel free to reopen it or ask for more details !

Arthur