add search for postcode

Implements the 'postcode' operator.
This commit is contained in:
Sarah Hoffmann
2017-07-04 23:25:48 +02:00
parent 872e73314e
commit 57dc0304b5
4 changed files with 54 additions and 3 deletions

View File

@@ -516,7 +516,7 @@ function _debugDumpGroupedSearches($aData, $aTokens)
echo "<table border=\"1\">";
echo "<tr><th>rank</th><th>Name Tokens</th><th>Name Not</th>";
echo "<th>Address Tokens</th><th>Address Not</th><th>country</th>";
echo "<th>operator</th><th>class</th><th>type</th><th>house#</th>";
echo "<th>operator</th><th>class</th><th>type</th><th>postcode</th><th>house#</th>";
echo "<th>Lat</th><th>Lon</th><th>Radius</th></tr>";
foreach ($aData as $iRank => $aRankedSet) {
foreach ($aRankedSet as $aRow) {
@@ -561,6 +561,7 @@ function _debugDumpGroupedSearches($aData, $aTokens)
echo "<td>".$aRow['sClass']."</td>";
echo "<td>".$aRow['sType']."</td>";
echo "<td>".$aRow['sPostcode']."</td>";
echo "<td>".$aRow['sHouseNumber']."</td>";
echo "<td>".$aRow['fLat']."</td>";