LaneDirection
Stay organized with collections
Save and categorize content based on your preferences.
One of the possible directions from a lane at the end of a route step, and whether it is on
the recommended route.
Public Constructor Summary
Inherited Method Summary
From class
java.lang.Object
boolean
|
equals(Object arg0)
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
Public Methods
Returns a new Builder instance that allows building new LaneDirection
objects.
public
abstract
Boolean
isRecommended
()
Whether this lane is recommended. Only one LaneDirection
is recommended at a time.
public
abstract
int
laneShape
()
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-28 UTC.
[null,null,["Last updated 2025-08-28 UTC."],[[["\u003cp\u003e\u003ccode\u003eLaneDirection\u003c/code\u003e indicates the possible directions from a lane at the end of a route step and if it's recommended.\u003c/p\u003e\n"],["\u003cp\u003eThis API is in beta and subject to change without guaranteeing backward compatibility.\u003c/p\u003e\n"],["\u003cp\u003eUse \u003ccode\u003ebuilder()\u003c/code\u003e to create new \u003ccode\u003eLaneDirection\u003c/code\u003e objects and \u003ccode\u003eisRecommended()\u003c/code\u003e to check if a lane is suggested.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003elaneShape()\u003c/code\u003e provides the shape of the road path continuing from the lane using \u003ccode\u003eLaneDirection.LaneShape\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# LaneDirection\n\npublic abstract class **LaneDirection** extends Object \n\u003cbr /\u003e\n\n| [Preview](/maps/launch-stages#preview) feature\n\nOne of the possible directions from a lane at the end of a route step, and whether it is on\nthe recommended route. \n\n### Nested Class Summary\n\n|------------|---|---|--------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| class | [LaneDirection.Builder](/maps/documentation/navigation/android-sdk/reference/com/google/android/libraries/mapsplatform/turnbyturn/model/LaneDirection.Builder) || A builder of [LaneDirection](/maps/documentation/navigation/android-sdk/reference/com/google/android/libraries/mapsplatform/turnbyturn/model/LaneDirection). |\n| @interface | [LaneDirection.LaneShape](/maps/documentation/navigation/android-sdk/reference/com/google/android/libraries/mapsplatform/turnbyturn/model/LaneDirection.LaneShape) || A set of values that specify the shape of the road path continuing from the Lane. |\n\n### Public Constructor Summary\n\n|---|------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| | [LaneDirection](/maps/documentation/navigation/android-sdk/reference/com/google/android/libraries/mapsplatform/turnbyturn/model/LaneDirection#LaneDirection())() |\n\n### Public Method Summary\n\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| static [LaneDirection.Builder](/maps/documentation/navigation/android-sdk/reference/com/google/android/libraries/mapsplatform/turnbyturn/model/LaneDirection.Builder) | [builder](/maps/documentation/navigation/android-sdk/reference/com/google/android/libraries/mapsplatform/turnbyturn/model/LaneDirection#builder())() Returns a new Builder instance that allows building new [LaneDirection](/maps/documentation/navigation/android-sdk/reference/com/google/android/libraries/mapsplatform/turnbyturn/model/LaneDirection) objects. |\n| abstract Boolean | [isRecommended](/maps/documentation/navigation/android-sdk/reference/com/google/android/libraries/mapsplatform/turnbyturn/model/LaneDirection#isRecommended())() Whether this lane is recommended. |\n| abstract int | [laneShape](/maps/documentation/navigation/android-sdk/reference/com/google/android/libraries/mapsplatform/turnbyturn/model/LaneDirection#laneShape())() Returns the [LaneDirection.LaneShape](/maps/documentation/navigation/android-sdk/reference/com/google/android/libraries/mapsplatform/turnbyturn/model/LaneDirection.LaneShape) for this lane direction. |\n\n### Inherited Method Summary\n\nFrom class java.lang.Object \n\n|------------------|---------------------------|\n| boolean | equals(Object arg0) |\n| final Class\\\u003c?\\\u003e | getClass() |\n| int | hashCode() |\n| final void | notify() |\n| final void | notifyAll() |\n| String | toString() |\n| final void | wait(long arg0, int arg1) |\n| final void | wait(long arg0) |\n| final void | wait() |\n\nPublic Constructors\n-------------------\n\n#### public\n**LaneDirection**\n()\n\n\u003cbr /\u003e\n\nPublic Methods\n--------------\n\n#### public static [LaneDirection.Builder](/maps/documentation/navigation/android-sdk/reference/com/google/android/libraries/mapsplatform/turnbyturn/model/LaneDirection.Builder)\n**builder**\n()\n\nReturns a new Builder instance that allows building new [LaneDirection](/maps/documentation/navigation/android-sdk/reference/com/google/android/libraries/mapsplatform/turnbyturn/model/LaneDirection) objects. \n\n#### public abstract Boolean\n**isRecommended**\n()\n\nWhether this lane is recommended. Only one [LaneDirection](/maps/documentation/navigation/android-sdk/reference/com/google/android/libraries/mapsplatform/turnbyturn/model/LaneDirection) is recommended at a time. \n\n#### public abstract int\n**laneShape**\n()\n\nReturns the [LaneDirection.LaneShape](/maps/documentation/navigation/android-sdk/reference/com/google/android/libraries/mapsplatform/turnbyturn/model/LaneDirection.LaneShape) for this lane direction."]]