Skip to content

Commit

Permalink
Adding nodes's and ways's version access in lua binding.
Browse files Browse the repository at this point in the history
Signed-off-by: FILLAU Jean-Maxime <[email protected]>
  • Loading branch information
FILLAU Jean-Maxime committed Nov 29, 2016
1 parent ff8bae8 commit 47e35fa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/extractor/scripting_environment_lua.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ void LuaScriptingEnvironment::InitContext(LuaScriptingContext &context)
.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("version", &osmium::Node::version)
.def("id", &osmium::Node::id),

luabind::class_<ExtractionNode>("ResultNode")
Expand Down Expand Up @@ -208,6 +209,7 @@ void LuaScriptingEnvironment::InitContext(LuaScriptingContext &context)
.def("get_value_by_key", &osmium::Way::get_value_by_key)
.def("get_value_by_key", &get_value_by_key<osmium::Way>)
.def("id", &osmium::Way::id)
.def("version", &osmium::Way::version)
.def("get_nodes", get_nodes_for_way, luabind::return_stl_iterator),
luabind::class_<InternalExtractorEdge>("EdgeSource")
.def_readonly("source_coordinate", &InternalExtractorEdge::source_coordinate)
Expand Down

0 comments on commit 47e35fa

Please sign in to comment.