{"action":"created","issue":{"url":"https://api.github.com/repos/umts/pvta-multiplatform/issues/57","repository_url":"https://api.github.com/repos/umts/pvta-multiplatform","labels_url":"https://api.github.com/repos/umts/pvta-multiplatform/issues/57/labels{/name}","comments_url":"https://api.github.com/repos/umts/pvta-multiplatform/issues/57/comments","events_url":"https://api.github.com/repos/umts/pvta-multiplatform/issues/57/events","html_url":"https://github.com/umts/pvta-multiplatform/pull/57","id":134743199,"number":57,"title":"KML Support and MapController Reorganization","user":{"login":"akaplo","id":7144148,"avatar_url":"https://avatars.githubusercontent.com/u/7144148?v=3","gravatar_id":"","url":"https://api.github.com/users/akaplo","html_url":"https://github.com/akaplo","followers_url":"https://api.github.com/users/akaplo/followers","following_url":"https://api.github.com/users/akaplo/following{/other_user}","gists_url":"https://api.github.com/users/akaplo/gists{/gist_id}","starred_url":"https://api.github.com/users/akaplo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akaplo/subscriptions","organizations_url":"https://api.github.com/users/akaplo/orgs","repos_url":"https://api.github.com/users/akaplo/repos","events_url":"https://api.github.com/users/akaplo/events{/privacy}","received_events_url":"https://api.github.com/users/akaplo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-19T01:04:41Z","updated_at":"2016-02-19T01:18:31Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/umts/pvta-multiplatform/pulls/57","html_url":"https://github.com/umts/pvta-multiplatform/pull/57","diff_url":"https://github.com/umts/pvta-multiplatform/pull/57.diff","patch_url":"https://github.com/umts/pvta-multiplatform/pull/57.patch"},"body":"Closes #36.  Adds support for adding an overlay to the Map view that traces any of PVTA's routes (the  file containing the coordinate list has extension `.kml`, hence why we use the term).  \r\n\r\nWhen asking for the location of a vehicle through a specific route's page, the KML is displayed on the map.  Also, each Route page has a button on the bottom for plotting the route.\r\n\r\nWhen asking for the location of a vehicle through Search, a KML is NOT displayed.\r\n\r\nThe support for picking the correct KML comes from a new optional parameter to the **vehicle** state, which takes an Avail ShortName (30, 35, B43, R29, etc), which is needed to query Infopoint for the proper file.  We can't easily get this info through a vehicle that has been selected from Search, because a single vehicle's data from Avail includes a unit (30-3, 43-1, etc), but not the ShortName.  For all operators other than UMTS,  **unit** and **short name** are different entities, so passing the unit doesn't get us the correct KML for Vatco and Satco buses.\r\n\r\nThis PR also includes a completely revitalized MapController that is hopefully modular enough to support extensions in the future.  I see that @petermarathas is working on #32, so I hope that this won't conflict with his work."},"comment":{"url":"https://api.github.com/repos/umts/pvta-multiplatform/issues/comments/186002423","html_url":"https://github.com/umts/pvta-multiplatform/pull/57#issuecomment-186002423","issue_url":"https://api.github.com/repos/umts/pvta-multiplatform/issues/57","id":186002423,"user":{"login":"akaplo","id":7144148,"avatar_url":"https://avatars.githubusercontent.com/u/7144148?v=3","gravatar_id":"","url":"https://api.github.com/users/akaplo","html_url":"https://github.com/akaplo","followers_url":"https://api.github.com/users/akaplo/followers","following_url":"https://api.github.com/users/akaplo/following{/other_user}","gists_url":"https://api.github.com/users/akaplo/gists{/gist_id}","starred_url":"https://api.github.com/users/akaplo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akaplo/subscriptions","organizations_url":"https://api.github.com/users/akaplo/orgs","repos_url":"https://api.github.com/users/akaplo/repos","events_url":"https://api.github.com/users/akaplo/events{/privacy}","received_events_url":"https://api.github.com/users/akaplo/received_events","type":"User","site_admin":false},"created_at":"2016-02-19T01:18:31Z","updated_at":"2016-02-19T01:18:31Z","body":"Plotting the 35\r\n\r\n<img width=\"1281\" alt=\"screen shot 2016-02-18 at 8 17 09 pm\" src=\"https://cloud.githubusercontent.com/assets/7144148/13163637/b5e88d12-d67c-11e5-85e4-981a4aade109.png\">\r\n\r\n\r\nPlotting a bus on the 35:\r\n\r\n<img width=\"1279\" alt=\"screen shot 2016-02-18 at 8 17 43 pm\" src=\"https://cloud.githubusercontent.com/assets/7144148/13163646/c4ef733e-d67c-11e5-90c8-d2888680b51f.png\">\r\n"}}