{"id":23,"date":"2026-02-05T09:48:50","date_gmt":"2026-02-05T09:48:50","guid":{"rendered":"https:\/\/donmaruta.ddns.net\/wordpress\/?p=23"},"modified":"2026-02-06T12:25:39","modified_gmt":"2026-02-06T12:25:39","slug":"cambridge-real-time-bus-locations","status":"publish","type":"post","link":"https:\/\/donmaruta.ddns.net\/wordpress\/?p=23","title":{"rendered":"Cambridge Real-Time Bus Locations"},"content":{"rendered":"\n<p>For the past month, I have been working on a method for the real-time tracking of the buses within Cambridge.<\/p>\n\n\n\n<p>I used the website <a href=\"https:\/\/www.maptiler.com\/\">MapTiler <\/a>for the base mapping the Open Bus Data <a href=\"https:\/\/www.bus-data.dft.gov.uk\/\">website <\/a>in order to get the real-time location of buses. I also uploaded a GeoJSON file with the bus stop locations, as these would normally be static and not require frequent updates. I had to create a proxy file in order to access the data due to CORS issues.<\/p>\n\n\n\n<p>Each bus icon represents the real-time location of a bus, with the route number in a colour beneath the icon. Each route number has a different colour allowing users to easily differentiate between the routes. I have also used the lollipop icon in order to show the location of the bus stops.<\/p>\n\n\n\n<p>This method also allows users to search for buses nearest to their location by clicking on the icon below.<\/p>\n\n\n<div class=\"wp-block-image wp-block-image size-full\">\n<figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"48\" height=\"46\" src=\"https:\/\/donmaruta.ddns.net\/wordpress\/wp-content\/uploads\/2026\/02\/download.png\" alt=\"\" class=\"wp-image-25\"\/><\/figure>\n<\/div>\n\n\n<p>In the future I will add popups for the bus stops showing their name, and will try to get the colour of the buses to match the colour of the text beneath.<\/p>\n\n\n\n<p>The full website can be found <a href=\"https:\/\/donmaruta.ddns.net\/wordpress\/wp-content\/uploads\/2026\/02\/Bus_Tracker_V9.html\">here<\/a>. As always please let me know your thoughts, and feedback.<\/p>\n\n\n\n<iframe src=\"https:\/\/donmaruta.ddns.net\/wordpress\/wp-content\/uploads\/2026\/02\/Bus_Tracker_V9.html\" width=700 height=500><\/iframe>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>For the past month, I have been working on a method for the real-time tracking of the buses within Cambridge. I used the website MapTiler for the base mapping the Open Bus Data website in order to get the real-time location of buses. I also uploaded a GeoJSON file with the bus stop locations, as &hellip; <a href=\"https:\/\/donmaruta.ddns.net\/wordpress\/?p=23\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Cambridge Real-Time Bus Locations<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-23","post","type-post","status-publish","format-standard","hentry","category-uncategorised"],"_links":{"self":[{"href":"https:\/\/donmaruta.ddns.net\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/23","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/donmaruta.ddns.net\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/donmaruta.ddns.net\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/donmaruta.ddns.net\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/donmaruta.ddns.net\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=23"}],"version-history":[{"count":11,"href":"https:\/\/donmaruta.ddns.net\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/23\/revisions"}],"predecessor-version":[{"id":55,"href":"https:\/\/donmaruta.ddns.net\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/23\/revisions\/55"}],"wp:attachment":[{"href":"https:\/\/donmaruta.ddns.net\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=23"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/donmaruta.ddns.net\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=23"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/donmaruta.ddns.net\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=23"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}