diff options
author | Keith Packard <keithp@keithp.com> | 2018-10-07 14:08:30 -0600 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2018-10-07 14:08:30 -0600 |
commit | e7e1e805f1358052b33103a2ffdd4e9c435c8650 (patch) | |
tree | 92cfbb2dc9a0aa3b7e824607eac763ebb11eac67 /map-server/altos-mapd/AltosMapdClient.java | |
parent | 581f700e08ec8a1c3bfc5a09e7186676c54a5460 (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.java | 2 |
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 { |