{"action":"closed","issue":{"url":"https://api.github.com/repos/osmcode/libosmium-manual/issues/9","repository_url":"https://api.github.com/repos/osmcode/libosmium-manual","labels_url":"https://api.github.com/repos/osmcode/libosmium-manual/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/osmcode/libosmium-manual/issues/9/comments","events_url":"https://api.github.com/repos/osmcode/libosmium-manual/issues/9/events","html_url":"https://github.com/osmcode/libosmium-manual/issues/9","id":190228012,"number":9,"title":"Code for Write Your Own Collector does not compile","user":{"login":"pnorman","id":1190866,"avatar_url":"https://avatars.githubusercontent.com/u/1190866?v=3","gravatar_id":"","url":"https://api.github.com/users/pnorman","html_url":"https://github.com/pnorman","followers_url":"https://api.github.com/users/pnorman/followers","following_url":"https://api.github.com/users/pnorman/following{/other_user}","gists_url":"https://api.github.com/users/pnorman/gists{/gist_id}","starred_url":"https://api.github.com/users/pnorman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pnorman/subscriptions","organizations_url":"https://api.github.com/users/pnorman/orgs","repos_url":"https://api.github.com/users/pnorman/repos","events_url":"https://api.github.com/users/pnorman/events{/privacy}","received_events_url":"https://api.github.com/users/pnorman/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-11-18T03:31:33Z","updated_at":"2016-11-18T09:12:42Z","closed_at":"2016-11-18T09:12:42Z","body":"```cpp\r\nvoid MyRelCollector::complete_relation(osmium::relations::RelationMeta& relation_meta) {\r\n    const osmium::Relation& relation = this->get_relation(relation_meta);\r\n    std::cout << \"Working on relation \" << relation.id() << \" which has following tags:\\n\";\r\n    for (const osmium::Tag& tag : relation.tags()) {\r\n        std::cout << tag.key() << \" = \" << tag.value() << '\\n';\r\n    }\r\n    for (const auto& member : relation.members()) {\r\n        switch (member.type()) {\r\n        case osmium::item_type::node :\r\n            std::cout << \"member node \" << member.ref() << \" with role \" << member.role() << '\\n';\r\n            const osmium::Node& node = static_cast<const osmium::Node&>\r\n                (this->get_member(this->get_offset(member.type(), member.ref())));\r\n            std::cout << \"at \" << node.lon() << \" \" << node.lat() << '\\n';\r\n            break;\r\n        case osmium::item_type::way :\r\n            std::cout << \"member way \" << member.ref() << \" with role \" << member.role() << '\\n';\r\n            // accessing tags, node references and node locations works like shown above with nodes, just\r\n            // cast to a different class\r\n            break;\r\n        case osmium::item_type::relation :\r\n            std::cout << \"member relation \" << member.ref() << \" with role \" << member.role() << '\\n';\r\n            break;\r\n        }\r\n    }\r\n}\r\n```\r\n\r\nThis errors, not finding lon and lat methods. These appear to be methods of the location."}}
{"actor":{"display_login":"joto"}}