OSM(): osm_name("name:zh"), radius(0.0008) { ptrConn = new pqxx::connection("dbname=nominatim user=osm password=osm hostaddr=127.0.0.1 port=5432"); if (!ptrConn->is_open()) throw std::string("database connection problem."); mapCountry["country"]="place"; //level 1 mapState["administrative"]="boundary"; //level 2 mapCity["suburb"]="place"; //level 3 mapCity["village"]="place"; mapCity["town"]="place"; mapCity["city"]="place"; mapCity["hamlet"]="place"; mapRoad["highway"]="highway"; //level 4 mapRoad["highway"]="tertiary"; }