setter
parent
cab4059c48
commit
3fdcd0fba6
|
@ -82,7 +82,7 @@ class Dictionary extends Base
|
||||||
if($lng && $lat){
|
if($lng && $lat){
|
||||||
$distance = get_distance($lat,$lng,$item['lat'],$item['lng']);
|
$distance = get_distance($lat,$lng,$item['lat'],$item['lng']);
|
||||||
if ($distance >= 1000) {
|
if ($distance >= 1000) {
|
||||||
$distance = round($distance/1000,2)."Km";
|
$distance = round($distance/1000,2)."km";
|
||||||
}else{
|
}else{
|
||||||
$distance .= "m";
|
$distance .= "m";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue