Commit 9b42d951 authored by Julian Zobel's avatar Julian Zobel
Browse files

JSONAttractionGenetor: NO Longer considers maximum radius

parent 99d40599
......@@ -137,15 +137,8 @@ public class JSONAttractionGenerator extends AbstractAttractionProvider {
}
// AP radius
if(allPOI.getJSONObject(i).getJSONObject("tags").has("radius")) {
double radius = allPOI.getJSONObject(i).getJSONObject("tags").getDouble("radius");
if(maximumRadius == -1) {
ap.setRadius(radius);
}
else {
ap.setRadius(Math.min(maximumRadius, radius));
}
if(allPOI.getJSONObject(i).getJSONObject("tags").has("radius")) {
ap.setRadius(allPOI.getJSONObject(i).getJSONObject("tags").getDouble("radius"));
}
if(allPOI.getJSONObject(i).getJSONObject("tags").has("pauseTimeMin") && allPOI.getJSONObject(i).getJSONObject("tags").has("pauseTimeMax")) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment