- Fix for Neue Meotrolregion angelegt inkl. Rate, wird aber nicht beim Routing berücksichtigt #43
This commit is contained in:
parent
3d3f3e8406
commit
4079229956
2 changed files with 3 additions and 3 deletions
|
|
@ -387,7 +387,7 @@ public class NodeRepository {
|
||||||
|
|
||||||
String query = """
|
String query = """
|
||||||
SELECT * FROM node
|
SELECT * FROM node
|
||||||
WHERE is_deprecated = FALSE AND
|
WHERE is_deprecated = FALSE AND id != ? AND
|
||||||
(
|
(
|
||||||
6371 * acos(
|
6371 * acos(
|
||||||
cos(radians(?)) *
|
cos(radians(?)) *
|
||||||
|
|
@ -399,7 +399,7 @@ public class NodeRepository {
|
||||||
) <= ?
|
) <= ?
|
||||||
""";
|
""";
|
||||||
|
|
||||||
return jdbcTemplate.query(query, new NodeMapper(), node.getGeoLat(), node.getGeoLng(), node.getGeoLat(), regionRadius);
|
return jdbcTemplate.query(query, new NodeMapper(), node.getId(), node.getGeoLat(), node.getGeoLng(), node.getGeoLat(), regionRadius);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -448,7 +448,7 @@ public class RoutingService {
|
||||||
finalSection = connectNearByNodes(chain.getLast(), nearByNodes, container);
|
finalSection = connectNearByNodes(chain.getLast(), nearByNodes, container);
|
||||||
if (finalSection != null) {
|
if (finalSection != null) {
|
||||||
connectionType = SourceConnectionType.FINAL_SECTION_WITH_NEAR_BY_NODE;
|
connectionType = SourceConnectionType.FINAL_SECTION_WITH_NEAR_BY_NODE;
|
||||||
nearByNode = finalSection.getToNode();
|
nearByNode = finalSection.getFromNode();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue