We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3310574 commit 02cb32bCopy full SHA for 02cb32b
lib/index.cc
@@ -12,9 +12,14 @@ LocationTable *create_map(const std::string& config_string) {
12
return map_factory.create_map(config_string).release();
13
}
14
15
-std::vector<std::string> map_types() {
+PyObject *map_types() {
16
const auto& map_factory = osmium::index::MapFactory<osmium::unsigned_object_id_type, osmium::Location>::instance();
17
- return map_factory.map_types();
+
18
+ boost::python::list* l = new boost::python::list();
19
+ for(auto const &e : map_factory.map_types())
20
+ (*l).append(e);
21
22
+ return l->ptr();
23
24
25
BOOST_PYTHON_MODULE(index)
0 commit comments