return ($a['aPointPolygon']['numfeatures'] > $b['aPointPolygon']['numfeatures']?-1:1);
if ($a['aPointPolygon']['area'] != $b['aPointPolygon']['area'])
return ($a['aPointPolygon']['area'] > $b['aPointPolygon']['area']?-1:1);
+ if ($a['levenshtein'] != $b['levenshtein'])
+ return ($a['levenshtein'] < $b['levenshtein']?-1:1);
if ($a['importance'] != $b['importance'])
return ($a['importance'] < $b['importance']?-1:1);
return ($a['foundorder'] < $b['foundorder']?-1:1);
echo " osm_type='$sOSMType'";\r
echo " osm_id='".$aResult['osm_id']."'";\r
}\r
+ echo " place_rank='".$aResult['rank_search']."'";\r
\r
if (isset($aResult['aBoundingBox']))\r
{\r
}
}
if ($bSuggestion) $sSuggestion = join(', ',$aSuggestion);
-
+/*
// Try and calculate GB postcodes we might be missing
foreach($aTokens as $sToken)
{
}
}
}
-
+*/
// Any words that have failed completely?
// TODO: suggestions