Inherits from INKHandler : NSObject
Declared in INKMapsHandler.h

Overview

An instance of INKMapsHandler opens third-party mapping applications to perform mapping tasks

Tasks

  •   center

    Coordinates representing where the map should be centered. This will also be used as a nearly starting location for any text searches.

    property
  •   zoom

    The amount to zoom in the map. 0 is the most zoomed out, 22 is the most zoomed in.

    property
  • – searchForLocation:

    Searches for points of interest on a map

  • – directionsFrom:to:mode:

    Brings up turn-by-turn directions between two locations

  • – directionsFrom:to:

    Brings up turn-by-turn driving directions between two locations

Properties

center

@property (nonatomic, assign) CLLocationCoordinate2D center
Discussion

Coordinates representing where the map should be centered. This will also be used as a nearly starting location for any text searches.

Declared In

INKMapsHandler.h

zoom

@property (nonatomic, assign) NSUInteger zoom
Discussion

The amount to zoom in the map. 0 is the most zoomed out, 22 is the most zoomed in.

Declared In

INKMapsHandler.h

Instance Methods

directionsFrom:to:

- (INKActivityPresenter *)directionsFrom:(NSString *)from to:(NSString *)to
Discussion

Brings up turn-by-turn driving directions between two locations

The same as calling directionsFrom:to:mode: with INKMapsHandlerDirectionsModeDriving for the mode value.

Declared In

INKMapsHandler.h

directionsFrom:to:mode:

- (INKActivityPresenter *)directionsFrom:(NSString *)from to:(NSString *)to mode:(INKMapsHandlerDirectionsMode)mode
Discussion

Brings up turn-by-turn directions between two locations

Warning: This does not currently verify that an application can support multiple modes of transportation. If you pick an application that doesn’t support the mode of transporation you’ve asked for, that application will likely ignore that part of the request.

Parameters

from

The starting location. May be lat/long coordinates, an address, or a business name/point of interest.

to

The destination. May be lat/long coordinates, an address, or a business name/point of interest.

mode

An INKMapsHandlerDirectionsMode indicating what mode of transporation to use.

Return Value

A INKActivityPresenter object to present.

Declared In

INKMapsHandler.h

searchForLocation:

- (INKActivityPresenter *)searchForLocation:(NSString *)query
Discussion

Searches for points of interest on a map

Like all methods in INKMapsHandler, this will respect the center and zoom instance variables.

Parameters

query

What to search for. May be lat/long coordinates, an address, or a business name/point of interest.

Return Value

A INKActivityPresenter object to present.

Declared In

INKMapsHandler.h