3

このメソッドで緯度経度を取得する方法は?

- (void)mapView:(GMSMapView )mapView didEndDraggingMarker:(GMSMarker )marker;

didEndDraggingMarker が呼び出されたときにアドレスを取得したい..

4

2 に答える 2

0
- (void)mapView:(GMSMapView *)mapView didTapAtCoordinate:(CLLocationCoordinate2D)coordinate {
    NSLog(@"You tapped at %f,%f", coordinate.latitude, coordinate.longitude);
}
- (void) mapView:(GMSMapView *)mapView didLongPressAtCoordinate:(CLLocationCoordinate2D)coordinate{
    NSLog(@"tapped");
}

- (void) mapView:(GMSMapView *)mapView didBeginDraggingMarker:(GMSMarker *)marker{
     isDragging = YES;
    NSLog(@"didBeginDraggingMarker:");
}

- (void)mapView:(GMSMapView *)mapView didEndDraggingMarker:(GMSMarker *)marker{
    isDragging = NO;
    NSLog(@"marker dragged to location: %f,%f", marker.position.latitude, marker.position.longitude);

    NSLog(@"didEndDraggingMarker");

}
于 2015-12-08T07:59:20.360 に答える