remove unused function - ingress API no longer uses full bounds-params - it requests by just quadkey now

This commit is contained in:
Jon Atkins 2014-01-15 19:33:33 +00:00
parent b14c22cc9b
commit 0861d5c35e

View File

@ -38,18 +38,6 @@ window.pointToTileId = function(level, x, y) {
return 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) { window.getResonatorLatLng = function(dist, slot, portalLatLng) {
// offset in meters // offset in meters