{"id":13990506,"url":"https://github.com/yi-jiayu/datamall-sql","last_synced_at":"2026-01-23T13:54:29.572Z","repository":{"id":99422503,"uuid":"163507969","full_name":"yi-jiayu/datamall-sql","owner":"yi-jiayu","description":"LTA DataMall data in an SQLite database and Elasticsearch","archived":false,"fork":false,"pushed_at":"2019-01-01T13:14:29.000Z","size":1607,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-08-09T13:17:23.203Z","etag":null,"topics":["elasticsearch","singapore","sql","sqlite"],"latest_commit_sha":null,"homepage":"","language":"Python","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/yi-jiayu.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,"governance":null,"roadmap":null,"authors":null}},"created_at":"2018-12-29T12:06:16.000Z","updated_at":"2019-06-16T08:11:19.000Z","dependencies_parsed_at":"2023-07-01T17:46:55.172Z","dependency_job_id":null,"html_url":"https://github.com/yi-jiayu/datamall-sql","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yi-jiayu%2Fdatamall-sql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yi-jiayu%2Fdatamall-sql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yi-jiayu%2Fdatamall-sql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yi-jiayu%2Fdatamall-sql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yi-jiayu","download_url":"https://codeload.github.com/yi-jiayu/datamall-sql/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227098820,"owners_count":17730643,"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":["elasticsearch","singapore","sql","sqlite"],"created_at":"2024-08-09T13:02:50.412Z","updated_at":"2026-01-23T13:54:29.533Z","avatar_url":"https://github.com/yi-jiayu.png","language":"Python","readme":"# DataMall SQL\nLTA DataMall data as an SQLite database\n\n## Included datasets\n- Bus stops\n- Bus routes\n\n## Generating the database\nIf you want to generate the database using the latest data, you will need a DataMall Account Key. Make sure it is in an exported environment variable called `DATAMALL_ACCOUNT_KEY` then run `create_db.sh`:\n\n```console\n$ ./create_db.sh \n[START] Fetch bus stops\nFetched 5007 bus stops.\n[END]   Fetch bus stops\n[START] Collect bus stops\n[END]   Collect bus stops\n[START] Write bus stops\n[END]   Write bus stops\n[START] Fetch bus routes\nFetched 26094 bus routes.\n[END]   Fetch bus routes\n[START] Collect bus routes\n[END]   Collect bus routes\n[START] Write bus routes\n[END]   Write bus routes\nCreated sqlite database datamall.sqlite\nInserted 5007 rows into bus_stops\nInserted 26094 rows into bus_routes\n```\n\n## Sample queries\n\n```console\n$ sqlite3 datamall.sqlite \nSQLite version 3.24.0 2018-06-04 14:10:15\nEnter \".help\" for usage hints.\nsqlite\u003e .headers on\nsqlite\u003e .mode column\nsqlite\u003e select * from bus_stops where bus_stop_code = '81111';\nbus_stop_code  road_name      description            latitude          longitude       \n-------------  -------------  ---------------------  ----------------  ----------------\n81111          Paya Lebar Rd  Paya Lebar Stn Exit B  1.31860238558389  103.892116897906\nsqlite\u003e select service_no from bus_routes where bus_stop_code = '81111';\nservice_no\n----------\n134       \n135       \n135A      \n137       \n154       \n155       \n24        \n28        \n43        \n70        \n70A       \n70M       \n76        \nsqlite\u003e \n```\n","funding_links":[],"categories":["Python"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyi-jiayu%2Fdatamall-sql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyi-jiayu%2Fdatamall-sql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyi-jiayu%2Fdatamall-sql/lists"}