VMMSCustomMapInfo
@interface VMMSCustomMapInfo : NSObject
Class that contains custom info that can be used when creating turn by turn directions and auto-labeling waypoints.
Since
1.0-
Loads a json file that contains custom map info.
Since
1.1Declaration
Swift
+ (instancetype)load:(id<VMDFile>)vmdFile forMap:(VMMSMap *)map options:(VMMSWaypointLabelOptions *)options;Parameters
vmdFileFile path to the json file.
mapA VMMSMap instance.
optionsThe options to use for labeling.
-
Retrieves the metadata associated with two waypoints.
Declaration
Swift
- (VMMSPathMetadata *)metadataForSegmentWithStartId:(NSString *)startId andEndId:(NSString *)endId;Parameters
startIdThe ID of the first waypoint.
endIdThe ID of the second waypoint.
Return Value
Returns path metadata for the segment.
-
Addes a new path metadata object
Declaration
Swift
- (void)addPathMetadata:(VMMSPathMetadata *)meta;Parameters
metathe new metadata
-
Loads a json file that contains custom map info.
Since
1.0Warning
Deprecated in 1.1. Use load:forMap:options instead.Declaration
Swift
+ (void)load:(NSString *)filePath delegate:(id<VMMSMapDelegate>)mapDelegate forMap:(VMMSMap *)map;Parameters
filePaththe absolute file path to the json file
mapDelegatea VMMSMapDelegate
mapthe associated VMMSMap
-
Loads a json file that contains custom map info.
Since
1.0Warning
Deprecated in 1.1. Use load:forMap:options instead.Declaration
Swift
+ (void)load:(NSString *)filePath delegate:(id<VMMSMapDelegate>)mapDelegate forMap:(VMMSMap *)map options:(VMMSWaypointLabelOptions *)options;Parameters
filePaththe absolute file path to the json file
mapDelegatea VMMSMapDelegate
mapthe associated VMMSMap
optionsoptions for labeling waypoints
-
Loads a json file that contains custom map info.
Since
1.0Warning
Deprecated in 1.1. Use load:forMap:options instead.Declaration
Swift
+ (void)loadFromURL:(NSURL *)url delegate:(id<VMMSMapDelegate>)delegate forMap:(VMMSMap *)map;Parameters
urlthe URL to the json file
delegatea VMMSMapDelegate
mapthe associated VMMSMap
-
Loads a json file that contains custom map info.
Since
1.0Warning
Deprecated in 1.1. Use load:forMap:options instead.Declaration
Swift
+ (void)loadFromURL:(NSURL *)url delegate:(id<VMMSMapDelegate>)delegate withOptions:(VMMSWaypointLabelOptions *)options forMap:(VMMSMap *)map;Parameters
urlthe URL to the json file
delegatea VMMSMapDelegate
optionsoptions for labeling waypoints
mapthe associated VMMSMap
-
Loads a json file that contains custom map info.
Since
1.0Warning
Deprecated in 1.1. Use load:forMap:options instead.Declaration
Swift
+ (void)loadFromURL:(NSURL *)url withSession:(NSURLSession *)session delegate:(id<VMMSMapDelegate>)delegate forMap:(VMMSMap *)map;Parameters
urlthe URL to the json file
sessiona custom URL session to control how the file is retrieved
delegatea VMMSMapDelegate
mapthe associated VMMSMap
-
Loads a json file that contains custom map info.
Since
1.0Warning
Deprecated in 1.1. Use load:forMap:options instead.Declaration
Swift
+ (void)loadFromURL:(NSURL *)url withSession:(NSURLSession *)session delegate:(id<VMMSMapDelegate>)delegate withOptions:(VMMSWaypointLabelOptions *)options forMap:(VMMSMap *)map;Parameters
urlthe URL to the json file
sessiona custom URL session to control how the file is retrieved
delegatea VMMSMapDelegate
optionsoptions for labeling waypoints
mapthe associated VMMSMap
VMMSCustomMapInfo Class Reference