GoogleNavigation Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
enum GMSNavigationRouteCalloutFormat : NSInteger {}
The format specifies whether to show distance or ETA information in route callouts.
-
Shows the time or distance, depending on the routing strategy. Shows time with the default best
routing strategy and distance with the shorter routing strategy.
Declaration
Objective-C
GMSNavigationRouteCalloutFormatDefault = 0
-
Shows time information in route callouts (e.g., 10 min, 5 min faster).
Declaration
Objective-C
GMSNavigationRouteCalloutFormatTime
-
Shows distance information in route callouts (e.g., 10 km, 5 km longer).
Declaration
Objective-C
GMSNavigationRouteCalloutFormatDistance
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-27 UTC.
[null,null,["Last updated 2025-08-27 UTC."],[[["\u003cp\u003e\u003ccode\u003eGMSNavigationRouteCalloutFormat\u003c/code\u003e controls the display of information (distance or ETA) in route callouts during navigation.\u003c/p\u003e\n"],["\u003cp\u003eIt offers three options: \u003ccode\u003edefault\u003c/code\u003e, \u003ccode\u003etime\u003c/code\u003e, and \u003ccode\u003edistance\u003c/code\u003e, allowing developers to customize the callout content.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003edefault\u003c/code\u003e option automatically chooses between time and distance based on the selected routing strategy.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003etime\u003c/code\u003e displays estimated time to reach the destination, while \u003ccode\u003edistance\u003c/code\u003e shows the remaining distance.\u003c/p\u003e\n"]]],[],null,["# GoogleNavigation Framework Reference\n\nGMSNavigationRouteCalloutFormat\n===============================\n\n enum GMSNavigationRouteCalloutFormat : NSInteger {}\n\nThe format specifies whether to show distance or ETA information in route callouts.\n- `\n ``\n ``\n `\n\n ### [GMSNavigationRouteCalloutFormatDefault](#/c:@E@GMSNavigationRouteCalloutFormat@GMSNavigationRouteCalloutFormatDefault)\n\n `\n ` \n Shows the time or distance, depending on the routing strategy. Shows time with the default best\n routing strategy and distance with the shorter routing strategy. \n\n #### Declaration\n\n Swift \n\n case `default` = 0\n\n Objective-C \n\n GMSNavigationRouteCalloutFormatDefault = 0\n\n- `\n ``\n ``\n `\n\n ### [GMSNavigationRouteCalloutFormatTime](#/c:@E@GMSNavigationRouteCalloutFormat@GMSNavigationRouteCalloutFormatTime)\n\n `\n ` \n Shows time information in route callouts (e.g., 10 min, 5 min faster). \n\n #### Declaration\n\n Swift \n\n case time = 1\n\n Objective-C \n\n GMSNavigationRouteCalloutFormatTime\n\n- `\n ``\n ``\n `\n\n ### [GMSNavigationRouteCalloutFormatDistance](#/c:@E@GMSNavigationRouteCalloutFormat@GMSNavigationRouteCalloutFormatDistance)\n\n `\n ` \n Shows distance information in route callouts (e.g., 10 km, 5 km longer). \n\n #### Declaration\n\n Swift \n\n case distance = 2\n\n Objective-C \n\n GMSNavigationRouteCalloutFormatDistance"]]