Browse Source

math

pull/5/head
Harish Krishna 10 years ago
parent
commit
8ba5c5b811
  1. 2
      middleware/search.js

2
middleware/search.js

@ -26,7 +26,7 @@ function WGS84EarthRadius(lat){
function boundingBox(latitudeInDegrees, longitudeInDegrees, halfSideInKm) {
var lat = deg2rad(latitudeInDegrees);
var lon = deg2rad(longitudeInDegrees);
var halfSide = 1000*halfSideInKm;
var halfSide = 1000000*halfSideInKm;
// Radius of Earth at given latitude
var radius = WGS84EarthRadius(lat);

Loading…
Cancel
Save