-
Notifications
You must be signed in to change notification settings - Fork 120
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add speedlimitunit and speedlimitsign to legstep
- Loading branch information
1 parent
defecb9
commit bc21013
Showing
6 changed files
with
124 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
services-directions-models/src/main/java/com/mapbox/api/directions/v5/models/SpeedLimit.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
package com.mapbox.api.directions.v5.models; | ||
|
||
import androidx.annotation.StringDef; | ||
|
||
import java.lang.annotation.Retention; | ||
import java.lang.annotation.RetentionPolicy; | ||
|
||
/** | ||
* The file exposes speed limit annotations. | ||
*/ | ||
public class SpeedLimit { | ||
/** | ||
* Speed limit unit in km/h. | ||
*/ | ||
public static final String KMPH = "km/h"; | ||
|
||
/** | ||
* Speed limit unit in mph. | ||
*/ | ||
public static final String MPH = "mph"; | ||
|
||
/** | ||
* Speed limit unit. | ||
*/ | ||
@Retention(RetentionPolicy.SOURCE) | ||
@StringDef({ | ||
MPH, | ||
KMPH | ||
}) | ||
public @interface Unit { | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
services-directions/src/test/resources/directions_v5_speedlimit.json
Large diffs are not rendered by default.
Oops, something went wrong.