GoogleNavigation Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
GMSRouteInfoCallback
Called when the route information (ETA and distance) to the provided waypoint is calculated.
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\u003eThis callback function is invoked upon successful calculation of route information to a specified waypoint.\u003c/p\u003e\n"],["\u003cp\u003eIt provides information regarding estimated time of arrival (ETA) and distance to the waypoint.\u003c/p\u003e\n"],["\u003cp\u003eThe function receives a \u003ccode\u003eGMSNavigationRouteInfo\u003c/code\u003e object which encapsulates the calculated route details, or \u003ccode\u003enil\u003c/code\u003e if route calculation fails.\u003c/p\u003e\n"]]],["The `GMSRouteInfoCallback` is a function block (typedef) that is invoked upon the calculation of route details. This callback provides a `GMSNavigationRouteInfo` object, which includes the estimated time of arrival (ETA) and distance to a specified waypoint. The callback may receive a null value if route information is not available.\n"],null,["# GoogleNavigation Framework Reference\n\nGMSRouteInfoCallback\n====================\n\n typedef void (^GMSRouteInfoCallback)(../Classes/GMSNavigationRouteInfo.html *_Nullable)\n\nCalled when the route information (ETA and distance) to the provided waypoint is calculated."]]