类 BannerText
java.lang.Object
ai.nextbillion.kits.directions.models.DirectionsJsonObject
ai.nextbillion.kits.directions.models.BannerText
- 所有已实现的接口:
Serializable
Includes both plain text information that can be visualized inside your navigation application
along with the text string broken down into
BannerComponents which may or may not
include a image url. To receive this information, your request must have
NbmapDirections.Builder#bannerInstructions() set to true.- 另请参阅:
-
嵌套类概要
嵌套类 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static BannerText.Builderbuilder()Create a new instance of this class by using theBannerText.Builderclass.abstract List<BannerComponents>A part or element of theBannerInstructions.abstract Doubledegrees()The degrees at which you will be exiting a roundabout, assuming `180` indicates going straight through the roundabout.abstract StringA string representing which side the of the street people drive on in that location.static BannerTextCreate a new instance of this class by passing in a formatted valid JSON String.abstract Stringabstract Stringmodifier()This indicates the mode of the maneuver.abstract Stringtext()Plain text with all theBannerComponentstext combined.abstract BannerText.BuilderConvert the currentBannerTextto its builder holding the currently assigned values.abstract Stringtype()This indicates the type of maneuver.static com.google.gson.TypeAdapter<BannerText>typeAdapter(com.google.gson.Gson gson) Gson type adapter for parsing Gson to this class.从类继承的方法 ai.nextbillion.kits.directions.models.DirectionsJsonObject
toJson
-
构造器详细资料
-
BannerText
public BannerText()
-
-
方法详细资料
-
builder
Create a new instance of this class by using theBannerText.Builderclass.- 返回:
- this classes
BannerText.Builderfor creating a new instance
-
text
Plain text with all theBannerComponentstext combined.- 返回:
- plain text with all the
BannerComponentstext items combined
-
instruction
- 返回:
- a short instruction text
-
components
A part or element of theBannerInstructions.- 返回:
- a
BannerComponentsspecific to aLegStep
-
type
This indicates the type of maneuver.- 返回:
- String with type of maneuver
- 另请参阅:
-
modifier
This indicates the mode of the maneuver. If type is of turn, the modifier indicates the change in direction accomplished through the turn. If the type is of depart/arrive, the modifier indicates the position of waypoint from the current direction of travel.- 返回:
- String with modifier
-
degrees
The degrees at which you will be exiting a roundabout, assuming `180` indicates going straight through the roundabout.- 返回:
- at which you will be exiting a roundabout
-
drivingSide
A string representing which side the of the street people drive on in that location. Can be 'left' or 'right'.- 返回:
- String either `left` or `right`
-
toBuilder
Convert the currentBannerTextto its builder holding the currently assigned values. This allows you to modify a single property and then rebuild the object resulting in an updated and modifiedBannerText.- 返回:
- a
BannerText.Builderwith the same values set to match the ones defined in thisBannerText
-
typeAdapter
Gson type adapter for parsing Gson to this class.- 参数:
gson- the builtGsonobject- 返回:
- the type adapter for this class
-
fromJson
Create a new instance of this class by passing in a formatted valid JSON String.- 参数:
json- a formatted valid JSON string defining a BannerText- 返回:
- a new instance of this class defined by the values passed inside this static factory method
-