{"action":"created","issue":{"url":"https://api.github.com/repos/hiposfer/o2g/issues/126","repository_url":"https://api.github.com/repos/hiposfer/o2g","labels_url":"https://api.github.com/repos/hiposfer/o2g/issues/126/labels{/name}","comments_url":"https://api.github.com/repos/hiposfer/o2g/issues/126/comments","events_url":"https://api.github.com/repos/hiposfer/o2g/issues/126/events","html_url":"https://github.com/hiposfer/o2g/issues/126","id":376594514,"node_id":"MDU6SXNzdWUzNzY1OTQ1MTQ=","number":126,"title":"consider linking \"same stations\" but \"different stop\"","user":{"login":"carocad","id":10408729,"node_id":"MDQ6VXNlcjEwNDA4NzI5","avatar_url":"https://avatars0.githubusercontent.com/u/10408729?v=4","gravatar_id":"","url":"https://api.github.com/users/carocad","html_url":"https://github.com/carocad","followers_url":"https://api.github.com/users/carocad/followers","following_url":"https://api.github.com/users/carocad/following{/other_user}","gists_url":"https://api.github.com/users/carocad/gists{/gist_id}","starred_url":"https://api.github.com/users/carocad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carocad/subscriptions","organizations_url":"https://api.github.com/users/carocad/orgs","repos_url":"https://api.github.com/users/carocad/repos","events_url":"https://api.github.com/users/carocad/events{/privacy}","received_events_url":"https://api.github.com/users/carocad/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-01T22:24:56Z","updated_at":"2018-12-03T22:47:44Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"GTFS feeds have the concept of `parent_station` (see [ref](https://developers.google.com/transit/gtfs/reference/#stopstxt)), whereas in OSM they call it `stop_area`.\r\n\r\nThose are basically a way to say that the complete entity is \"known\" as a single \"body\" even though it consist of different pieces. I think this is related to #125 however, the proposal here is not to merge them but to link them such that the \"belongs to\" relation becomes evident\r\n\r\nEDIT: this would also imply filling out the `location_type` field as we would have to differentiate between stops and stations\r\n\r\nexamples:\r\n- https://www.openstreetmap.org/relation/233704#map=15/50.1031/8.6538&layers=T\r\n- https://www.openstreetmap.org/relation/388110#map=18/50.11158/8.65499&layers=T"},"comment":{"url":"https://api.github.com/repos/hiposfer/o2g/issues/comments/443900202","html_url":"https://github.com/hiposfer/o2g/issues/126#issuecomment-443900202","issue_url":"https://api.github.com/repos/hiposfer/o2g/issues/126","id":443900202,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MzkwMDIwMg==","user":{"login":"mehdisadeghi","id":3101557,"node_id":"MDQ6VXNlcjMxMDE1NTc=","avatar_url":"https://avatars2.githubusercontent.com/u/3101557?v=4","gravatar_id":"","url":"https://api.github.com/users/mehdisadeghi","html_url":"https://github.com/mehdisadeghi","followers_url":"https://api.github.com/users/mehdisadeghi/followers","following_url":"https://api.github.com/users/mehdisadeghi/following{/other_user}","gists_url":"https://api.github.com/users/mehdisadeghi/gists{/gist_id}","starred_url":"https://api.github.com/users/mehdisadeghi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mehdisadeghi/subscriptions","organizations_url":"https://api.github.com/users/mehdisadeghi/orgs","repos_url":"https://api.github.com/users/mehdisadeghi/repos","events_url":"https://api.github.com/users/mehdisadeghi/events{/privacy}","received_events_url":"https://api.github.com/users/mehdisadeghi/received_events","type":"User","site_admin":false},"created_at":"2018-12-03T22:47:44Z","updated_at":"2018-12-03T22:47:44Z","author_association":"CONTRIBUTOR","body":"It's a while I'm trying to figure out how to do this. There are a few problems. OSM's `stop_area` isn't quite like GTFS' `station`, i.e. it has no coordinates. Therefore coordinate must be inferred from any of its members. In Frankfurt's example above, there are multiple `stations` inside the `stop_area`, my idea was to pick one of them randomly, or just the first one, and use its coordinate.\r\nNext problem is with OSM data. If you compare [Freiburg's Hbf](https://www.openstreetmap.org/relation/1263623) to Frankfurt, you'll realize they are mapped very differently. There are no `stop_area`, instead `stations` and `ways`. Our current overpass query wouldn't even pick it up (since the type is neither `route` nor `stop_area`). I'm not sure whether I have to process stations such as Freiburg since the stops are being already picked up as part their relations. Does the extra complexity worth it?\r\nWhat do you think @carocad ?"}}
{"actor":{"display_login":"mehdisadeghi"}}