{"id":17138445,"url":"https://github.com/kevinburke/gobike","last_synced_at":"2026-03-15T21:19:39.090Z","repository":{"id":57520845,"uuid":"143969810","full_name":"kevinburke/gobike","owner":"kevinburke","description":null,"archived":false,"fork":false,"pushed_at":"2021-10-08T21:24:08.000Z","size":12616,"stargazers_count":6,"open_issues_count":13,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-27T01:22:07.729Z","etag":null,"topics":["bayarea","bikeshare","data-visualization","gobike","golang"],"latest_commit_sha":null,"homepage":"https://bikeshare.science","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kevinburke.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-08-08T06:23:38.000Z","updated_at":"2022-07-29T19:58:52.000Z","dependencies_parsed_at":"2022-09-26T18:01:04.130Z","dependency_job_id":null,"html_url":"https://github.com/kevinburke/gobike","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevinburke%2Fgobike","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevinburke%2Fgobike/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevinburke%2Fgobike/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevinburke%2Fgobike/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kevinburke","download_url":"https://codeload.github.com/kevinburke/gobike/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248695303,"owners_count":21146952,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bayarea","bikeshare","data-visualization","gobike","golang"],"created_at":"2024-10-14T20:09:39.952Z","updated_at":"2025-10-28T03:02:33.004Z","avatar_url":"https://github.com/kevinburke.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GoBike Data\n\nThis project visualizes data about the Ford GoBike network. The data is\navailable here: https://bikeshare.science.\n\n## Trip Data\n\nTrip data is downloaded from https://www.fordgobike.com/system-data and should\nbe placed in the `data` directory. Once downloaded, the directory should look\nlike this:\n\n```\n$ ll data\ntotal 1309768\ndrwxr-xr-x  11 kevin  staff   352B Aug 14 01:08 .\ndrwxr-xr-x  22 kevin  staff   704B Aug 19 20:09 ..\n-rw-r--r--@  1 kevin  staff   112M Aug 12 02:44 2017-fordgobike-tripdata.csv\n-rw-r--r--@  1 kevin  staff    19M Aug 12 02:44 201801-fordgobike-tripdata.csv\n-rw-r--r--@  1 kevin  staff    22M Aug 12 02:44 201802-fordgobike-tripdata.csv\n-rw-r--r--@  1 kevin  staff    23M Aug 12 02:44 201803-fordgobike-tripdata.csv\n-rw-r--r--@  1 kevin  staff    27M Aug 12 02:44 201804-fordgobike-tripdata.csv\n-rw-r--r--@  1 kevin  staff    36M Jun  8 08:08 201805-fordgobike-tripdata.csv\n-rw-r--r--@  1 kevin  staff    40M Jul 16 11:40 201806-fordgobike-tripdata.csv\n-rw-r--r--@  1 kevin  staff    40M Aug  7 12:01 201807-fordgobike-tripdata.csv\n```\n\nThis is a prerequisite for building the site.\n\n## Static Site\n\nAll of the pages are static pages that are checked in to Git. Run `make site` to\nregenerate the HTML pages.\n\n## Testing\n\nRun `make test` to run the test suite.\n\n## Polygons\n\nThe polygons are kind of a pain. Use `geojsonlint` to check whether your\npolygons are okay. They need to be in a particular order.\n\nRun the `rewind` script to rewind the polygon order.\n\n### Datasets\n\nIn addition to server, we've made the Ford GoBike datasets available online.\n\n#### BigQuery\n\nAll trip data lives in the\n[ford_gobike](https://bigquery.cloud.google.com/table/kjc-datasets:ford_gobike.trips)\ndataset, which is available publicly.\n\n##### Trips per week\n\n```sql\nSELECT\n  DATE_TRUNC(DATE(start_time), WEEK) as week,\n  COUNT(*) as trips\nFROM `bay-area-public-data.ford_gobike.trips`\nGROUP BY 1\nORDER BY 1\n```\n\n##### Unique bikes per week\n\n```sql\nSELECT\n  DATE_TRUNC(DATE(start_time), WEEK) as week,\n  COUNT(distinct bike_id) as bikes\nFROM `bay-area-public-data.ford_gobike.trips`\nGROUP BY 1\nORDER BY 1\n```\n\n##### Average trips per bike per week\n\n```sql\nWITH bike_trips AS (\nSELECT\n  DATE_TRUNC(DATE(start_time), WEEK) as week,\n  bike_id,\n  count(*) as trips\nFROM `bay-area-public-data.ford_gobike.trips`\nGROUP BY 1, 2\nORDER BY 1\n)\n\nSELECT week, avg(trips)\nFROM bike_trips\nGROUP BY 1\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkevinburke%2Fgobike","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkevinburke%2Fgobike","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkevinburke%2Fgobike/lists"}