WRLDPointOnPath Class Reference

A class which allows you to find the closest point on a path or route. Created by the createPointOnPath method of the WRLDMapView object.

– getPointOnPath:count:point:

- (WRLDPointOnPathResult *)getPointOnPath:(CLLocationCoordinate2D *)path count:(NSInteger)count point:(CLLocationCoordinate2D)point

Find the closest point on a path to a provided target point.

Returns:

The closest point on the path to the provided target point.

Argument Description
path

The path to test against; an array of CLLocationCoordinates.

count

The number of elements in the path array.

point

The desired target point.

– getPointOnRoute:point:options:

- (WRLDPointOnRouteResult *)getPointOnRoute:(WRLDRoute *)route point:(CLLocationCoordinate2D)point options:(WRLDPointOnRouteOptions *)options

Retrieve information about the closest point on a WRLDRoute to a provided target point on an Indoor Map.

Returns:

The WRLDPointOnRouteResult that represents information about that point, or nil if no suitable point is found.

Argument Description
route

The WRLDRoute to test against.

point

The desired target point.

options

The indoor options for specifying a route that is indoors.

v0.0.1600