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

Surveys: Accept (lat,lon) of stops in responses #174

Open
3 tasks done
aaronbrethorst opened this issue Oct 2, 2024 · 0 comments · May be fixed by #199
Open
3 tasks done

Surveys: Accept (lat,lon) of stops in responses #174

aaronbrethorst opened this issue Oct 2, 2024 · 0 comments · May be fixed by #199
Assignees

Comments

@aaronbrethorst
Copy link
Member

aaronbrethorst commented Oct 2, 2024

Companion issue: OneBusAway/onebusaway-android#1259

This comes from our conversation with Devin Braun.

User Story

As a transit agency employee,
I want to see lat,lon values in survey responses,
so that I can visualize locations in my data analysis tool of choice

Acceptance criteria

  • Add stop_latitude and stop_longitude columns to SurveyResponse (see below).
  • Modify Api::V1::SurveyResponsesController#create so that stop_latitude and stop_longitude are accepted as params.
  • Add this new data to the data rendered from survey_responses#index, both the HTML and CSV variants.

Migration

modify_table :survey_responses do |t|
  t.column :lat, :decimal, precision: 15, scale: 10
  t.column :lng, :decimal, precision: 15, scale: 10
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants