Open antrim opened 9 years ago
Hello Aaron,
stop_code was being included previously. I had to do an emergency patch of the proxy to make it compatible with the changes in JSON format between OTP 0.11 and OTP 0.18, essentially translating 0.18 responses into the 0.11 format.
Let me check and see if stop_code is still being included in the results.
Those stop_code
s are definitely in the GTFS.
Ed
Aaron,
I've fixed the stop_codes.
Old version of OTP didn't include stop codes so the proxy had to look them up via GTFS-API.
New version of OTP changed how they return the stopId from {"agencyId" : "248", "id", "778277" }
to "248:778277"
, which broke the GTFS-API lookup. Fortunately, they now include stop_codes in the results, so I could simply disable the GTFS-API lookup function.
Here is a test url which uses a recent day, above testing URL is from March where the data is no longer available.
Note there are some stops which do not have codes, I don't know if this is a problem or not.
stop_id stop_code stop_name
─────── ───────── ───────────────────────────────────
783912 Discovery Cube Science Center
783914 Bowers Museum
787483 4th & Spurgeon Santa Ana
787484 2nd & Broadway Santa Ana
787488 Ramada Inn & Suites
787489 Holiday Inn Express
787490 BLVD Hotel
787491 Best Western Plus Newport Mesa Inn
787492 Ayres Inn Costa Mesa
787493 Residence Inn by Marriott
787494 Hilton Costa Mesa
787495 Costa Mesa Marriott
787496 Avenue of the Arts Wyndham Hotel
787497 The Westin South Coast Plaza
787498 South Coast Plaza (MACY's Valet)
787499 Residence Inn Garden Grove (Harbor)
787500 Red Robin
794902 Disneyland (Harbor Blvd.)
Thanks, Ed!
Yes, we have suggested Anaheim should assign stop_codes to some these. Not sure exactly what the status is.
On Wed, Oct 21, 2015 at 5:33 PM, Ed Groth notifications@github.com wrote:
Note there are some stops which do not have codes, I don't know if this is a problem or not.
stop_id stop_code stop_name ─────── ───────── ─────────────────────────────────── 783912 Discovery Cube Science Center 783914 Bowers Museum 787483 4th & Spurgeon Santa Ana 787484 2nd & Broadway Santa Ana 787488 Ramada Inn & Suites 787489 Holiday Inn Express 787490 BLVD Hotel 787491 Best Western Plus Newport Mesa Inn 787492 Ayres Inn Costa Mesa 787493 Residence Inn by Marriott 787494 Hilton Costa Mesa 787495 Costa Mesa Marriott 787496 Avenue of the Arts Wyndham Hotel 787497 The Westin South Coast Plaza 787498 South Coast Plaza (MACY's Valet) 787499 Residence Inn Garden Grove (Harbor) 787500 Red Robin 794902 Disneyland (Harbor Blvd.)
— Reply to this email directly or view it on GitHub https://github.com/ed-g/otp-api-proxy/issues/2#issuecomment-150063300.
Aaron Antrim, Principal Trillium Solutions, Inc. www.trilliumtransit.com Portland, Oregon 503.567.8422 ext. 3
stop_code is provided in the GTFS. I believe that OTP does provide this in planner results. We see null values in stop_code from otp-api-proxy.
Example (http://gtfs-api.ed-groth.com/trip-planner/anaheim-ca-us/plan?fromPlace=33.8046480634388,-117.915358543396&toPlace=33.77272636987434,-117.8671646118164)