From 0861d5c35e34d4758b3ee2816315e2d0e56c9c84 Mon Sep 17 00:00:00 2001 From: Jon Atkins Date: Wed, 15 Jan 2014 19:33:33 +0000 Subject: [PATCH] remove unused function - ingress API no longer uses full bounds-params - it requests by just quadkey now --- code/map_data_calc_tools.js | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/code/map_data_calc_tools.js b/code/map_data_calc_tools.js index a2c3369c..ea89c959 100644 --- a/code/map_data_calc_tools.js +++ b/code/map_data_calc_tools.js @@ -38,18 +38,6 @@ window.pointToTileId = function(level, x, y) { return level + "_" + x + "_" + y; } -// given tile id and bounds, returns the format as required by the -// Ingress API to request map data. -window.generateBoundsParams = function(tile_id, minLat, minLng, maxLat, maxLng) { - return { - id: tile_id, - qk: tile_id, - minLatE6: Math.round(minLat * 1E6), - minLngE6: Math.round(minLng * 1E6), - maxLatE6: Math.round(maxLat * 1E6), - maxLngE6: Math.round(maxLng * 1E6) - }; -} window.getResonatorLatLng = function(dist, slot, portalLatLng) { // offset in meters