A colleague sends you an address. A customer mentions a place by name. A call comes in from a street you have never heard of. Where do you start? In MapInfo Pro, there are two good ways to find an address or location, and this article shows you both.
Using Find and Mark
Find and Mark is accessed through the Mark control from the Find dropdown on the Map tab. You can also use the Ctrl+F shortcut.
Using Wildcard Search
Wildcard Search works a bit differently. It provides you with one, two, or three lookup lists that you can filter.
Having installed and loaded the MultiSearch tool, you find the Wildcard Search control in the Find dropdown just beneath the Mark control, which we discussed above.
There are several ways you can configure Wildcard Search. I have specified the Address column and the City and Postal columns. We'll get back to the configuration further down in the article.
Enter the address, ideally including the city or postal code, then press the Enter key or the Search button.
If you don't enter the city or postal code, the search will be slow, especially on large datasets. That's caused by the search method used here. You enter parts of an address, and Wildcard Search will look for this part in every address in the table. If you also enter a city or postal code, the search will be limited to these parameters first.
The result is presented here as three separate values: the address, the city, and the postal code.
You can also tell that the search has added the % wildcard to the address part. If you had added a wildcard character, no additional wildcard characters would have been added.
If you select the Zoom option in the Wildcard Search dialog, the map will zoom to the specified level.
Wildcard Search can also be used to find multiple addresses. You can search for addresses on a specific street in a given city and/or postal code.
You can see that the search has returned 38 addresses that meet these criteria.
This is a handy shortcut for building a mailing list that would otherwise have required SQL. Keep in mind that it will only find addresses that, for example, include the street name. If the address only contains, say, a house or place name, it will not be included in the results.
The saved table will be opened, added to the map, and MapInfo Pro will zoom to the extent of the table's records.
Right-click on the MultiSearch tool in the Tools window, and click on the Configuration menu item from the context menu.
This will open the Configuration dialog. Now, click on the Configure button next to the Wildcard Table Search to open the Configure Wildcard Search dialog.
The dialog lets you pick which table to search and how many columns to search.
I have picked my Address Fabric dataset and three columns.
For each column, you specify a Title which is shown in the Wildcard Search dialog, and if the column is considered a Wide Field. This makes the search field in the Wildcard Search dialog wider.
Finally, you specify a Search Operator that can be one of two: Contains (Like), where the query will use a slower wildcard search using the Like operator, or Equal To (=), where the query will use a precise and faster = operator.
You can mix the two, as you can see I have done. I have used Contains (Like) for my address, which is typically longer and harder to type correctly. For the City and Postal Code, I use the exact Equal To (=) operator, as these values are shorter and easier to spell correctly.
As I said before, for larger datasets, the recommendation is to always include at least one precise and fast Equal To operator.
I have put the Address field in the First Column. You could also put the City and/or Postal first. The order controls the appearance of the fields in the Wildcard Search dialog.
How are you searching for addresses or locations inside MapInfo Pro?
Happy #MapInfoMonday!
------------------------------
Peter Horsbøll Møller
Principal Presales Consultant | Distinguished Engineer
Precisely | Trust in Data
------------------------------