Skip to content

Commit 7e17b9a

Browse files
committed
may as well illustrate distance too
1 parent eb2eda8 commit 7e17b9a

File tree

1 file changed

+1
-1
lines changed
  • ch34p1024userLocationAndGeocoding/ch34p1024userLocationAndGeocoding

1 file changed

+1
-1
lines changed

ch34p1024userLocationAndGeocoding/ch34p1024userLocationAndGeocoding/ViewController.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ - (IBAction) directionsToThaiFood: (id) sender {
145145
MKPolyline* poly = route.polyline;
146146
[self.map addOverlay:poly];
147147
for (MKRouteStep* step in route.steps) {
148-
NSLog(@"%@", step.instructions);
148+
NSLog(@"After %d metres: %@", (int)step.distance, step.instructions);
149149
}
150150
}];
151151
}];

0 commit comments

Comments
 (0)