throw new RuntimeException(errors); return new LandmarkSuggestion(landmarkNodeIds, bbox);
LandmarkSuggestion selectedSuggestion = null; for (LandmarkSuggestion lmsugg : landmarkSuggestions) { if (lmsugg.getBox().contains(lat, lon)) { selectedSuggestion = lmsugg; break; if (selectedSuggestion.getNodeIds().size() < tmpLandmarkNodeIds.length) throw new IllegalArgumentException("landmark suggestions are too few " + selectedSuggestion.getNodeIds().size() + " for requested landmarks " + landmarks); int lmNodeId = selectedSuggestion.getNodeIds().get(i); tmpLandmarkNodeIds[i] = lmNodeId;
try { for (String loc : lmSuggestionsLocations) { lmSuggestions.add(LandmarkSuggestion.readLandmarks(loc, locationIndex));
LandmarkSuggestion selectedSuggestion = null; for (LandmarkSuggestion lmsugg : landmarkSuggestions) { if (lmsugg.getBox().contains(lat, lon)) { selectedSuggestion = lmsugg; break; if (selectedSuggestion.getNodeIds().size() < tmpLandmarkNodeIds.length) throw new IllegalArgumentException("landmark suggestions are too few " + selectedSuggestion.getNodeIds().size() + " for requested landmarks " + landmarks); int lmNodeId = selectedSuggestion.getNodeIds().get(i); tmpLandmarkNodeIds[i] = lmNodeId;
try { for (String loc : lmSuggestionsLocations) { lmSuggestions.add(LandmarkSuggestion.readLandmarks(loc, locationIndex));
throw new RuntimeException(errors); return new LandmarkSuggestion(landmarkNodeIds, bbox);
LandmarkSuggestion selectedSuggestion = null; for (LandmarkSuggestion lmsugg : landmarkSuggestions) { if (lmsugg.getBox().contains(lat, lon)) { selectedSuggestion = lmsugg; break; if (selectedSuggestion.getNodeIds().size() < tmpLandmarkNodeIds.length) throw new IllegalArgumentException("landmark suggestions are too few " + selectedSuggestion.getNodeIds().size() + " for requested landmarks " + landmarks); int lmNodeId = selectedSuggestion.getNodeIds().get(i); tmpLandmarkNodeIds[i] = lmNodeId;
try { for (String loc : lmSuggestionsLocations) { lmSuggestions.add(LandmarkSuggestion.readLandmarks(loc, locationIndex));
throw new RuntimeException(errors); return new LandmarkSuggestion(landmarkNodeIds, bbox);