Article Preview
Buy Now
FEATURE
Xojo Maps, Part 4
Finding and Displaying Addresses with the MapKitMBS plugin
Issue: 18.3 (May/June 2020)
Author: Markus Winter
Author Bio: Markus is a Molecular Biologist who taught himself REALbasic programming in 2003 to let the computer deal with some exceedingly tedious lab tasks. Some call it lazy, he thinks it smart. He still thinks of himself as an advanced beginner at best.
Article Description: No description available.
Article Length (in bytes): 23,302
Starting Page Number: 70
Article Number: 18306
Resource File(s):
project18306.zip Updated: 2020-05-01 11:31:21
Related Link(s): None
Excerpt of article text...
In Part 3 of this series, we determined how to do the searching; this time we'll have a closer look at how Apple does it and what we get back from our searches. The easier one to deal with is
MKLocalSearch
, so let's get started on that one.MKLocalSearch
Now
MKLocalSearch
is very simple to use, especially when we take advantage of its ability to process natural language queries.An overview of the MBS example program's structure and logic was given in part 2 of this series, so in Figure 1 you'll see a slightly simplified version of the same diagram.
In the MapKit Local Search example (included with the MBS plugins) we had to fix the
NilObjectsException
that we get in the first line of theSearchFinished
event when we run the example and hit the Return key.But there are still a few problems, as we noted, that need fixing. Namely:
...End of Excerpt. Please purchase the magazine to read the full article.