stops for location API issue

33 views
Skip to first unread message

kossavot

unread,
Jun 5, 2020, 12:09:59 PM6/5/20
to onebusaway-developers
Hi all,
I had no luck posting this in the OneBusAway API so I'm hoping to be luckier here. I'm sorry to be redundant.

I've got a strange behaviour when I call the stops for location API which I use to convert the user-facing stop code to the actual stop id.
The API works fine for most stops except for a limited subset. In the gtfs stops.txt I've noticed that this limited subset differs from all other stops and the difference is that they have a parent station defined with location_type=0 if that matters.
Now, when I search for a stop belonging to this subset I get no results. Curiously If I searched the same stop by using the parent station (which is not a user-facing stop code) the API returns a result: wrong stop_id but lat,lon,name are right.
Any clue on what's going on here ? What can I do to pinpoint the issue to give you more info ?

Thanks

P.S.
I'm using OBA server 2.0 from the master branch.

Sean Barbeau

unread,
Jun 5, 2020, 4:47:56 PM6/5/20
to onebusaway-developers
Kossavot,
That sounds like it could be a bug searching for platforms within stations. Could you open an issue?


Sean

Sean Barbeau

unread,
Jun 5, 2020, 4:51:13 PM6/5/20
to onebusaway-developers
Oh, wait - the parent station has location_type=0?

That sounds like bad GTFS data. Parent stations should have location_type=1:

Sean

Giorgio Alfarano

unread,
Jun 5, 2020, 4:51:18 PM6/5/20
to onebusaway...@googlegroups.com
sure, I'll do it. Thank you.


--
You received this message because you are subscribed to the Google Groups "onebusaway-developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to onebusaway-devel...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/onebusaway-developers/85dc9d1c-59bf-40ce-bf79-2d6e8df18172o%40googlegroups.com.

Giorgio Alfarano

unread,
Jun 5, 2020, 4:57:51 PM6/5/20
to onebusaway...@googlegroups.com
Hi Sean,
location_type = 0 refers to the actual stop and not the parent_station which has (I've just checked) indeed location_type=1


--
You received this message because you are subscribed to the Google Groups "onebusaway-developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to onebusaway-devel...@googlegroups.com.

Sean Barbeau

unread,
Jun 5, 2020, 5:43:44 PM6/5/20
to onebusaway...@googlegroups.com
Ok, thanks for the clarification. So maybe a bug (or lack of feature) for searching child stops, then. Could you open an issue, and include snippets of the stops.txt data for the related parent/child stops?

Sean

You received this message because you are subscribed to a topic in the Google Groups "onebusaway-developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/onebusaway-developers/rl781UkxRdo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to onebusaway-devel...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/onebusaway-developers/CABb7yJbxOxRu_04gxE-qk05wyoG1Ft_imHs%3Dtd7xJrOOAnF8%2Bw%40mail.gmail.com.

Giorgio Alfarano

unread,
Jun 6, 2020, 4:15:47 AM6/6/20
to onebusaway...@googlegroups.com

kossavot

unread,
Jun 9, 2020, 1:35:46 PM6/9/20
to onebusaway-developers
Hi Sean,
have you had the chance to have a look at this issue please ? Any idea where should I look at to fix it ? is it in the bundle builder isn't it ?

Thank you

To unsubscribe from this group and stop receiving emails from it, send an email to onebusaway-developers+unsub...@googlegroups.com.

--
You received this message because you are subscribed to a topic in the Google Groups "onebusaway-developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/onebusaway-developers/rl781UkxRdo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to onebusaway-developers+unsub...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "onebusaway-developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to onebusaway-developers+unsub...@googlegroups.com.

Sean Barbeau

unread,
Jun 9, 2020, 5:39:39 PM6/9/20
to onebusaway...@googlegroups.com
In short, no. I'll reply on the GitHub issue.

Sean

To unsubscribe from this group and stop receiving emails from it, send an email to onebusaway-devel...@googlegroups.com.

--
You received this message because you are subscribed to a topic in the Google Groups "onebusaway-developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/onebusaway-developers/rl781UkxRdo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to onebusaway-devel...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "onebusaway-developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to onebusaway-devel...@googlegroups.com.

--
You received this message because you are subscribed to a topic in the Google Groups "onebusaway-developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/onebusaway-developers/rl781UkxRdo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to onebusaway-devel...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/onebusaway-developers/75bd9170-14aa-4700-ac30-618b2ee189ccn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages