make node id available thru Lua bindings

This commit is contained in:
Dennis Luxen 2015-04-13 09:58:59 +02:00
parent 405f08b807
commit b76fc724fd

View File

@ -93,7 +93,8 @@ void ScriptingEnvironment::init_lua_state(lua_State *lua_state)
// .def<node_member_ptr_type>("tags", &osmium::Node::tags)
.def("location", &osmium::Node::location)
.def("get_value_by_key", &osmium::Node::get_value_by_key)
.def("get_value_by_key", &get_value_by_key<osmium::Node>),
.def("get_value_by_key", &get_value_by_key<osmium::Node>)
.def("id", &osmium::Node::id),
luabind::class_<ExtractionNode>("ResultNode")
.def_readwrite("traffic_lights", &ExtractionNode::traffic_lights)