Patrick Brosi 4 anos atrás
pai
commit
eda7320caf
1 arquivos alterados com 2 adições e 2 exclusões
  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 694
       json << seper
695 695
            << "{\"type\":4,\"orig_gid\":" << stat->origGroup + range.gidStart
696 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 699
     } else if (sugg->type == 5) {
700 700
       json << seper
701 701
            << "{\"type\":5,\"orig_gid\":" << stat->origGroup + range.gidStart