report-problem-with-trip Method
Submit a user-generated problem report for a particular trip. The reporting mechanism provides lots of fields that can be specified to give more context about the details of the problem (which trip, stop, vehicle, etc was involved), making it easier for a developer or transit agency staff to diagnose the problem. These reports feed into the problem reporting admin interface.
Example Request
Example Response
Request Parameters
tripId
- the trip id, encoded directly in the URL:http://api.pugetsound.onebusaway.org/api/where/report-problem-with-trip/[ID GOES HERE].xml
serviceDate
- the service date of the tripvehicleId
- the vehicle actively serving the tripstopId
- a stop id indicating the stop where the user is experiencing the problemcode
- a string code identifying the nature of the problemvehicle_never_came
vehicle_came_early
- the vehicle arrived earlier than predictedvehicle_came_late
- the vehicle arrived later than predictedwrong_headsign
- the headsign reported by OneBusAway differed from the vehicle’s actual headsignvehicle_does_not_stop_here
- the trip in question does not actually service the indicated stopother
- catch-all for everythign else
userComment
- additional comment text supplied by the user describing the problemuserOnVehicle
- true/false to indicate if the user is on the transit vehicle experiencing the problemuserVehicleNumber
- the vehicle number, as reported by the useruserLat
- the reporting user’s current latitudeuserLon
- the reporting user’s current longitudeuserLocationAccuracy
- the reporting user’s location accuracy, in meters
In general, everything but the tripId
itself is optional, but generally speaking, providing more fields in the report
will make it easier to diagnose the actual underlying problem. Note that while we record specific location information
for the user, we do not store any identifying information for the user in order to make it hard to link the user to
their location as some point in the future.