partial #1033 - fixed the bug with position
This commit is contained in:
parent
455fcad278
commit
e071d04ea9
@ -343,8 +343,8 @@ App.loc = {
|
||||
var distances = [];
|
||||
var closest = -1;
|
||||
for( i=0;i<results.length; i++ ) {
|
||||
var alat = results[i].geometry.location.lat;
|
||||
var alng = results[i].geometry.location.lng;
|
||||
var alat = results[i].geometry.location.lat();
|
||||
var alng = results[i].geometry.location.lng();
|
||||
var dLat = _toRad( alat - lat );
|
||||
var dLong = _toRad( alng - lng );
|
||||
var a = Math.sin( dLat / 2 ) * Math.sin( dLat / 2 ) +
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user