summaryrefslogtreecommitdiff
path: root/map-server/altos-mapd/AltosMapdClient.java
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2018-10-07 14:08:30 -0600
committerKeith Packard <keithp@keithp.com>2018-10-07 14:08:30 -0600
commite7e1e805f1358052b33103a2ffdd4e9c435c8650 (patch)
tree92cfbb2dc9a0aa3b7e824607eac763ebb11eac67 /map-server/altos-mapd/AltosMapdClient.java
parent581f700e08ec8a1c3bfc5a09e7186676c54a5460 (diff)
altos-mapd: Check nearest portion of tile to launch site
We limit tile queries to those within 17km of a known launch site. Change the check to look at the portion of the tile nearest each launch site, instead of only checking the center location of the tile. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'map-server/altos-mapd/AltosMapdClient.java')
-rw-r--r--map-server/altos-mapd/AltosMapdClient.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/map-server/altos-mapd/AltosMapdClient.java b/map-server/altos-mapd/AltosMapdClient.java
index 19174088..6c95da8f 100644
--- a/map-server/altos-mapd/AltosMapdClient.java
+++ b/map-server/altos-mapd/AltosMapdClient.java
@@ -85,7 +85,7 @@ public class AltosMapdClient extends Thread implements AltosMapStoreListener {
addr == null)
{
set_status(400);
- } else if (!AltosMapd.check_lat_lon(lat, lon)) {
+ } else if (!AltosMapd.check_lat_lon(lat, lon, zoom)) {
set_status(403); /* Forbidden */
} else {