Ich möchte Route mit Richtungsangaben von 2 Standortpunkten finden. Ich bin in der Lage, Polylinie zwischen 2 Punkten zu zeichnen, aber ich möchte Richtung.Wie finde ich Route zwischen 2 Standorten in der Karte mit Richtung Details?
GMSMutablePath *path = [GMSMutablePath path];
[path addCoordinate:CLLocationCoordinate2DMake(23.0225, 72.5714)];
[path addCoordinate:CLLocationCoordinate2DMake(22.3072, 73.1812)];
GMSPolyline *polyline = [GMSPolyline polylineWithPath:path];
polyline.strokeColor = [UIColor blackColor];
polyline.strokeWidth = 5.f;
polyline.geodesic = YES;
GMSStrokeStyle *redYellow = [GMSStrokeStyle gradientFromColor:[UIColor redColor] toColor:[UIColor yellowColor]];
polyline.spans = @[[GMSStyleSpan spanWithStyle:redYellow]];
polyline.map = self.mapView;
wie kann ich das erreichen?
danke.
ich verstehe Sie nicht richtig, können Sie sich ausarbeiten .. !! Du sagtest, du willst die Richtung, also willst du, dass deine Ausgabe Nord, Ost, West ist ... oder ?? –