Présentation
GMSPath encapsule un tableau immuable de CLLocationCooordinate2D.
Toutes les coordonnées d'un chemin GMSPath doivent être valides. L'équivalent modifiable est GMSMutablePath.
Hérité par GMSMutablePath.
Fonctions publiques des membres | |
(identifiant) | - initWithPath: |
Initialise un chemin d'accès nouvellement attribué avec le contenu d'un autre chemin GMSPath. | |
(NSUInteger) | - nombre |
Obtenir la taille du chemin. | |
(CLLocationCoordinate2D) | - coordinateAtIndex: |
Renvoie kCLLocationCoordinate2DInvalid si index >= count. | |
(NSString *) | - encodedPath |
Renvoie une chaîne encodée du chemin d'accès au format décrit ci-dessus. | |
(type d'instance) | - pathOffsetByLatitude:longitude: |
Renvoie un nouveau tracé obtenu en ajoutant deltaLatitude et deltaLongitude à chaque coordonnée du tracé actuel. | |
(double) | - segmentsForLength:kind: |
Renvoie le nombre fractionné de segments le long du chemin correspondant à length , interprétés selon kind . | |
(CLLocationDistance) | - lengthOfKind: |
Renvoie la longueur du chemin, selon kind . | |
Fonctions de membre publiques statiques | |
(type d'instance) | + chemin |
Constructeur de commodité pour un chemin d'accès vide. | |
(Type d'instance pouvant être vide) | + pathFromEncodingPath: |
Initialise un chemin d'accès nouvellement attribué à partir de encodedPath . |
Documentation sur la fonction de membre
+ (type d'instance) path |
Constructeur de commodité pour un chemin d'accès vide.
- (id) initWithPath: | (GMSPath *) | path |
Initialise un chemin d'accès nouvellement attribué avec le contenu d'un autre chemin GMSPath.
- (nombre_NSU) nombre |
Obtenir la taille du chemin.
- (CLLocationCoordinate2D) : coordinateAtIndex: | (NSUInteger) | index |
Renvoie kCLLocationCoordinate2DInvalid si index
>= count.
+ (type d'instance pouvant être vide) pathFromEncodingPath: | (NSString *) | encodedPath (Chemin d'accès encodé) |
Initialise un chemin d'accès nouvellement attribué à partir de encodedPath
.
Ce format est décrit à l'adresse suivante : https://developers.google.com/maps/documentation/utilities/polylinealgorithm.
- (NSString *) encodedPath |
Renvoie une chaîne encodée du chemin d'accès au format décrit ci-dessus.
- (instancetype) pathOffsetByLatitude: | (CLLocationDegrees) | DeltaLatitude | |
longitude : | (CLLocationDegrees) | deltaLongitude | |
Renvoie un nouveau tracé obtenu en ajoutant deltaLatitude
et deltaLongitude
à chaque coordonnée du tracé actuel.
Ne modifie pas le chemin d'accès actuel.
- (double) segmentsForLength: | (CLLocationDistance) | longueur | |
kind: | (GMSLengthKind) | kind | |
Renvoie le nombre fractionné de segments le long du chemin correspondant à length
, interprétés selon kind
.
Voir GMSLengthKind.
- (CLLocationDistance) lengthOfKind: | (GMSLengthKind) | kind |
Renvoie la longueur du chemin, selon kind
.
Voir GMSLengthKind.