{"id":19922939,"url":"https://github.com/justinfilip/real-time-bus-tracking","last_synced_at":"2026-05-13T15:33:52.513Z","repository":{"id":226643062,"uuid":"769267557","full_name":"justinfilip/Real-Time-Bus-Tracking","owner":"justinfilip","description":"Real-time locations of buses en route between MIT and Harvard using the Google Maps Javascript API and data from mbta.com. Buses are represented as the MBTA logo and the location of the buses is updated every 15 seconds.","archived":false,"fork":false,"pushed_at":"2024-03-21T22:22:06.000Z","size":22,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-12T00:14:59.232Z","etag":null,"topics":["google-maps-api","javascript","location-tracker"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/justinfilip.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-03-08T17:30:45.000Z","updated_at":"2024-04-09T10:50:01.000Z","dependencies_parsed_at":"2024-03-21T23:30:54.508Z","dependency_job_id":null,"html_url":"https://github.com/justinfilip/Real-Time-Bus-Tracking","commit_stats":null,"previous_names":["justinfilip/real-time-bus-location-tracking","justinfilip/real-time-bus-tracking"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justinfilip%2FReal-Time-Bus-Tracking","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justinfilip%2FReal-Time-Bus-Tracking/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justinfilip%2FReal-Time-Bus-Tracking/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justinfilip%2FReal-Time-Bus-Tracking/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/justinfilip","download_url":"https://codeload.github.com/justinfilip/Real-Time-Bus-Tracking/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241348358,"owners_count":19948164,"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":["google-maps-api","javascript","location-tracker"],"created_at":"2024-11-12T22:12:34.640Z","updated_at":"2026-05-13T15:33:52.486Z","avatar_url":"https://github.com/justinfilip.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Real Time Bus Tracking\n\n### Real-time locations of buses en route between MIT and Harvard using the Google Maps Javascript API and data from mbta.com. Buses are represented as the MBTA logo and the location of the buses is updated every 15 seconds.\n\nhttps://www.youtube.com/watch?v=16GIgTOt1n8\n\n## How to Run\n- Enable the Maps Javascript API in a new Google Cloud project\n- Add billing information and attach a billing account to your project (won't cost anything to run this)\n- Create an API key\n- Replace YOUR_API_KEY with your API key in index.html\n- Load index.html in a browser\n\n## Improvements made so far\n\n- Added a base64 encoded version of the MBTA logo as the marker icons\n- Added a global variable for indicating that updated data is available. I use this variable in my marker update function to determine wether to update the markers or set a timeout to check again in one second\n- Changed it to update the position of existing markers instead of deleting all markers and setting new ones by saving each new marker in a list of two objects [busID, marker] and using that list to determine wether a marker already exists for a datapoint\n- Added comments describing functionality and high level steps\n\n## Roadmap of future improvements\n- Show bus # on hover over bus transit icon\n- Show occupancy status on hover over bus transit icon\n\n## License\nMIT License\n\nCopyright (c) 2024 Justin Filip\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjustinfilip%2Freal-time-bus-tracking","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjustinfilip%2Freal-time-bus-tracking","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjustinfilip%2Freal-time-bus-tracking/lists"}