Patrick Brosi 4 years ago
parent
commit
eda7320caf
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/osmfixer/server/StatServer.cpp

+ 2 - 2
src/osmfixer/server/StatServer.cpp

@@ -694,8 +694,8 @@ util::http::Answer StatServer::handleStatReq(const Params& pars) const {
694
       json << seper
694
       json << seper
695
            << "{\"type\":4,\"orig_gid\":" << stat->origGroup + range.gidStart
695
            << "{\"type\":4,\"orig_gid\":" << stat->origGroup + range.gidStart
696
            << ",\"orig_osm_rel_id\":" << idx.getGroup(stat->origGroup)->osmid
696
            << ",\"orig_osm_rel_id\":" << idx.getGroup(stat->origGroup)->osmid
697
-           << ",\"target_gid\":" << stat->group << ",\"target_osm_rel_id\":"
698
-           << idx.getGroup(stat->group)->osmid + range.gidStart << "}";
697
+           << ",\"target_gid\":" << stat->group + range.gidStart << ",\"target_osm_rel_id\":"
698
+           << idx.getGroup(stat->group)->osmid << "}";
699
     } else if (sugg->type == 5) {
699
     } else if (sugg->type == 5) {
700
       json << seper
700
       json << seper
701
            << "{\"type\":5,\"orig_gid\":" << stat->origGroup + range.gidStart
701
            << "{\"type\":5,\"orig_gid\":" << stat->origGroup + range.gidStart