Skip to content

Commit

Permalink
Merge pull request #1433 from Project-OSRM/feature/node-location
Browse files Browse the repository at this point in the history
Make node location accessible
  • Loading branch information
TheMarex committed Apr 13, 2015
2 parents 9cc68b2 + b76fc72 commit 61dca4a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion extractor/scripting_environment.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,10 @@ void ScriptingEnvironment::init_lua_state(lua_State *lua_state)

luabind::class_<osmium::Node>("Node")
// .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)
Expand Down

0 comments on commit 61dca4a

Please sign in to comment.