open static fun createTransitPolyline(@NonNull context: Context, @NonNull transitPathOption: TransitPathOption): ArrayList<PolylineOptions>
Convert the path option to the polyline options.
transitPathOption - Path options of the steps for transit result.
Return
Options for a polyline.
Since
1.2.0
open static fun createTransitPolyline(@NonNull context: Context, @Nullable stepList: MutableList<Step>, @Dimension(0) transitWidth: Int, transitColor: Int, @Dimension(0) walkingWidth: Int, walkingColor: Int): ArrayList<PolylineOptions>
Convert the list of latitude and longitude to the polyline options in transit mode.
stepList - A list of latitude and longitude for the steps.
transitWidth - Width of the polyline in screen pixels for transit polyline.
transitColor - Color of the polyline as a 32-bit ARGB color for transit polyline.
walkingWidth - Width of the polyline in screen pixels for walking polyline.
walkingColor - Color of the polyline as a 32-bit ARGB color for walking polyline.
Return
Options for a polyline.
Since
1.0.0
open static fun createTransitPolyline(@NonNull context: Context, @Nullable stepList: MutableList<Step>, @Dimension(0) transitWidth: Int, @Nullable transitPatternItemList: MutableList<PatternItem>, transitColor: Int, @Dimension(0) walkingWidth: Int, walkingColor: Int, @Nullable walkingPatternItemList: MutableList<PatternItem>): ArrayList<PolylineOptions>
Convert the list of latitude and longitude to the polyline options in transit mode.
stepList - A list of latitude and longitude for the steps.
transitWidth - Width of the polyline in screen pixels for transit polyline.
transitColor - Color of the polyline as a 32-bit ARGB color for transit polyline.
transitPatternItemList - Stroke pattern for the polyline for transit polyline.
walkingWidth - Width of the polyline in screen pixels for walking polyline.
walkingColor - Color of the polyline as a 32-bit ARGB color for walking polyline.
walkingPatternItemList - Stroke pattern for the polyline for walking polyline.
Return
Options for a polyline.
Since
1.2.0
open static fun createTransitPolyline(@NonNull context: Context, @Nullable stepList: MutableList<Step>, @Dimension(0) transitWidth: Int, transitColor: Int, @Dimension(0) walkingWidth: Int, walkingColor: Int, clickable: Boolean): ArrayList<PolylineOptions>
Convert the list of latitude and longitude to the polyline options in transit mode.
stepList - A list of latitude and longitude for the steps.
transitWidth - Width of the polyline in screen pixels for transit polyline.
transitColor - Color of the polyline as a 32-bit ARGB color for transit polyline.
walkingWidth - Width of the polyline in screen pixels for walking polyline.
walkingColor - Color of the polyline as a 32-bit ARGB color for walking polyline.
clickable - Is polyline clickable.
Return
Options for a polyline.
Since
1.2.0
open static fun createTransitPolyline(@NonNull context: Context, @Nullable stepList: MutableList<Step>, @Dimension(0) transitWidth: Int, transitColor: Int, @Dimension(0) walkingWidth: Int, walkingColor: Int, clickable: Boolean, jointType: Int): ArrayList<PolylineOptions>
Convert the list of latitude and longitude to the polyline options in transit mode.
stepList - A list of latitude and longitude for the steps.
transitWidth - Width of the polyline in screen pixels for transit polyline.
transitColor - Color of the polyline as a 32-bit ARGB color for transit polyline.
walkingWidth - Width of the polyline in screen pixels for walking polyline.
walkingColor - Color of the polyline as a 32-bit ARGB color for walking polyline.
clickable - Is polyline clickable.
jointType - Joint type for all vertices of the polyline except the start and end vertices.
Return
Options for a polyline.
Since
1.2.0
open static fun createTransitPolyline(@NonNull context: Context, @Nullable stepList: MutableList<Step>, @Dimension(0) transitWidth: Int, transitColor: Int, @Dimension(0) walkingWidth: Int, walkingColor: Int, clickable: Boolean, @Nullable startCap: Cap, @Nullable endCap: Cap): ArrayList<PolylineOptions>
Convert the list of latitude and longitude to the polyline options in transit mode.
stepList - A list of latitude and longitude for the steps.
transitWidth - Width of the polyline in screen pixels for transit polyline.
transitColor - Color of the polyline as a 32-bit ARGB color for transit polyline.
walkingWidth - Width of the polyline in screen pixels for walking polyline.
walkingColor - Color of the polyline as a 32-bit ARGB color for walking polyline.
clickable - Is polyline clickable.
startCap - Cap at the start vertex of the polyline.
endCap - Cap at the end vertex of the polyline.
Return
Options for a polyline.
Since
1.2.0
open static fun createTransitPolyline(@NonNull context: Context, @Nullable stepList: MutableList<Step>, @Dimension(0) transitWidth: Int, transitColor: Int, @Nullable transitPatternItemList: MutableList<PatternItem>, @Dimension(0) walkingWidth: Int, walkingColor: Int, @Nullable walkingPatternItemList: MutableList<PatternItem>, clickable: Boolean, jointType: Int, @Nullable startCap: Cap, @Nullable endCap: Cap): ArrayList<PolylineOptions>
Convert the list of latitude and longitude to the polyline options in transit mode.
stepList - A list of latitude and longitude for the steps.
transitWidth - Width of the polyline in screen pixels for transit polyline.
transitColor - Color of the polyline as a 32-bit ARGB color for transit polyline.
transitPatternItemList - Stroke pattern for the polyline for transit polyline.
walkingWidth - Width of the polyline in screen pixels for walking polyline.
walkingColor - Color of the polyline as a 32-bit ARGB color for walking polyline.
walkingPatternItemList - Stroke pattern for the polyline for walking polyline.
clickable - Is polyline clickable.
jointType - Joint type for all vertices of the polyline except the start and end vertices.
startCap - Cap at the start vertex of the polyline.
endCap - Cap at the end vertex of the polyline.
Return
Options for a polyline.
Since
1.2.0