Classes
The following classes are available globally.
-
Encapsulates request parameters for autocomplete requests.
See moreDeclaration
Swift
public class AutocompleteConfig : NSObject
-
Encapsulates request parameters for place requests.
See moreDeclaration
Swift
public class PlaceConfig : NSObject
-
Encapsulates request parameters for reverse geo requests.
See moreDeclaration
Swift
public class ReverseConfig : NSObject
-
Encapsulates request parameters for search requests.
See moreDeclaration
Swift
open class SearchConfig: NSObject
-
See moreMapzenManager
is a singleton object used for managing state between the various dependencies. Right now, it only manages the API key system.Declaration
Swift
open class MapzenManager: NSObject, MapzenManagerProtocol
-
RoutingController
is a subclass of On The Road’s routing controller and is the main access point in the SDK for querying for routes.Note
The routing controller provides API key management and as such is expected to be retrieved via thecontroller()
function so everything gets setup correctly.Declaration
Swift
open class RoutingController: OTRRoutingController
-
Represents a response for a request executed by ‘MapzenSearch’
See moreDeclaration
Swift
public class SearchResponse : NSObject
-
MZMapViewController is the main class utilized for displaying Mapzen maps on iOS. It aims to provide the full set of features a developer would want for mapping-related tasks, such as displaying routes, results of a search, or the device’s current location (and any combination therein.)
MZMapViewController wraps the underlying
See moreTGMapViewController
from Tangram-es and handles adding it to the view hierarchy. It exposes this in thetgViewController
property and allows for additional customization there using the Tangram-es iOS framework. Documentation on that is available here.Declaration
Swift
open class MZMapViewController: UIViewController, LocationManagerDelegate
-
The
See moreLocationManager
class is a wrapper around iOS’s built in location subsystem. It provides a simpler interface and customization options.Declaration
Swift
open class LocationManager: NSObject, CLLocationManagerDelegate
-
See morePeliasMapkitAnnotation
is a data object class that provides MapKit compatible annotation objects. It conforms toMKAnnotation
protocol and is also used by the Mapzen iOS SDK for annotations (markers in Tangram-es).Declaration
Swift
open class PeliasMapkitAnnotation: NSObject, MKAnnotation
-
Main entry point for interacting with Mapzen Search.
See moreDeclaration
Swift
public class MapzenSearch : NSObject
-
Represents a search request’s rectangular boundary.
See moreDeclaration
Swift
public class SearchRect: NSObject
-
Represents a search request’s circular boundary.
See moreDeclaration
Swift
public class SearchCircle: NSObject
-
Structure used to represent a coordinate point.
See moreDeclaration
Swift
public class GeoPoint: NSObject
-
Base class for generic markers. Do not instantiate this class directly, use one of the more meaningful subclasses.
See moreDeclaration
Swift
public class Marker : NSObject, GenericMarker
-
Base class for geometric markers. Do not instantiate this class directly, use one of the more meaningful subclasses.
See moreDeclaration
Swift
public class GeometricMarker : Marker, GenericGeometricMarker
-
Base class for point markers.
See moreDeclaration
Swift
public class PointMarker : GeometricMarker, GenericPointIconMarker
-
Base class for polyline markers.
See moreDeclaration
Swift
public class PolylineMarker : GeometricMarker, GenericPolylineMarker
-
Base class for polygon markers.
See moreDeclaration
Swift
public class PolygonMarker : GeometricMarker, GenericPolygonMarker
-
Base class for system point markers.
See moreDeclaration
Swift
public class SystemPointMarker : Marker, GenericSystemPointMarker
-
Base class for system point markers.
See moreDeclaration
Swift
public class SelectableSystemPointMarker : Marker, GenericSelectableSystemPointMarker
-
Base class for system polyline markers.
See moreDeclaration
Swift
public class SystemPolylineMarker : Marker, GenericSystemPolylineMarker