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

Adding data for route geometry is extremely important #393

Open
krooven opened this issue Apr 27, 2022 · 11 comments
Open

Adding data for route geometry is extremely important #393

krooven opened this issue Apr 27, 2022 · 11 comments
Assignees

Comments

@krooven
Copy link

krooven commented Apr 27, 2022

Would appreciate adding API for the geometry of the routes (geographic coordinates) as this data is present in GTFS data (shapes.txt).
This has great importance as no other system/API is providing this as raw data (also not for MOT users).

@OriHoch
Copy link

OriHoch commented Apr 27, 2022

Hi, you can download the shapes.txt file for each day from our public S3 bucket.

To browse it you need to use any AWS account, it doesn't matter which account and it doesn't need any permissions, you can register for a free account and use that.

You can access it here - https://s3.console.aws.amazon.com/s3/buckets/openbus-stride-public?region=eu-west-1

The GTFS data is under gtfs_archive/ in a dated directory structure year/month/day/, the shapes.txt file is in israel-public-transportation.zip

If you meant something else by the API, please give some examples of how you would expect to use this API - what is the method / arguments / input / output you expect from this API

@OriHoch OriHoch self-assigned this Apr 27, 2022
@OriHoch
Copy link

OriHoch commented Apr 27, 2022

also, it would be helpful if you could describe some end-user use-cases for this API / data

@OriHoch OriHoch assigned krooven and unassigned OriHoch Apr 27, 2022
@krooven
Copy link
Author

krooven commented Apr 27, 2022

Considering this API:
https://open-bus-stride-api.hasadna.org.il/docs#/
No method is present to access the coordinate data as can be retrieved other routes info (agency_name, route_type, etc) using the /gtfs_routes/get method for example.

@OriHoch
Copy link

OriHoch commented Apr 27, 2022

could you provide an example of how this method call will look like and what output it will return?

@idshklein
Copy link
Collaborator

I will piggyback on @krooven question and ask for a an ability to filter list__siri_vehicle_locations_list_get by location log/lat.
If I understand correctly, @krooven asks for alist__gtfs_shapes_list_get method, which return a list of all shape_ids, including geometry, at a specific bounding box. the abilty to filter data according to a spatial bounding box can also help the filtering in list__siri_vehicle_locations_list_get.
the more general idea is the ability to query stride api for both types of data - spatial plans and execution, without the need to download gtfs. this can help answer questions regarding all buses traversing a specific link, as opposed to a taking into account only specific line ids

@OriHoch
Copy link

OriHoch commented Apr 27, 2022

It's very hard for me to understand from general descriptions, if you could provide concrete examples of specific function calls, arguments, input and output that will make it much easier to understand

for example - user wants to do XYZ, to do that he needs to get data from the API for object number 5847, he will make an API call to example.com/get_object?number=5847, the response will be:

{"foo":"bar", "baz":"bax"}

@idshklein
Copy link
Collaborator

say I want to get all GPS signals in a bounding box, the api call will be:

https://open-bus-stride-api.hasadna.org.il/siri_vehicle_locations/list?lon_from=31&lon_to=31.1&lat_from=35&lat_to=35.1

and in response, get the standard siri_vehicle_locations response.

I will expand on the list__gtfs_shapes_list_get later

@OriHoch
Copy link

OriHoch commented Apr 27, 2022

great, thanks, we will handle that in this issue - #394

@OriHoch
Copy link

OriHoch commented Apr 27, 2022

@idshklein @krooven issue #394 is done + deployed, see that issue for details

@krooven
Copy link
Author

krooven commented Apr 27, 2022

That's really great !
But as @idshklein mention I ask for something else, more simple I believe.
Looking for a call method that gives the geomtery data that relate to every route id as it stored in GTFS (stored in SHAPES.txt shape_pt_lat, shape_pt_lon ), the same way other inforamtion can be access by get method.

@OriHoch
Copy link

OriHoch commented Jun 26, 2022

as I mentioned in previous comment, I need more details about what is the expected API request/response to support this.

Would be best to have an example request/response which would answer your requirement

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

3 participants