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