MobileMapViewer.LocationsFromQuery

From Xojo Documentation

Method

MobileMapViewer.LocationsFromQuery(query As String) As MapLocation()

New in 2020r2

Supported for all project types and targets.

Returns an array of MapLocations based upon the query passed.

Sample Code

Find all the McDonalds locations near the center of the map currently being displayed and add them to it:

Var locationsFound() As MapLocation
locationsFound = MapViewer1.LocationsFromQuery("McDonalds")
MapViewer1.AddLocation(locationsFound)

See Also

MapLocation class.