diff --git a/lib/template/search-jsonv2.php b/lib/template/search-jsonv2.php index 2b8c2c28..671edde4 100644 --- a/lib/template/search-jsonv2.php +++ b/lib/template/search-jsonv2.php @@ -36,7 +36,7 @@ $aPlace['lat'] = $aPointDetails['lat']; $aPlace['lon'] = $aPointDetails['lon']; $aPlace['display_name'] = $aPointDetails['name']; - $aPlace['place_rank'] = $aResult['rank_search']; + $aPlace['place_rank'] = $aPointDetails['rank_search']; $aPlace['category'] = $aPointDetails['class']; $aPlace['type'] = $aPointDetails['type'];