-
Notifications
You must be signed in to change notification settings - Fork 117
Add MaxSpeed Annotation to Directions API #772
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| * | ||
| * @since 2.1.0 | ||
| */ | ||
| public static final String ANNOTATION_MAX_SPEED = "maxspeed"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A nitpicky observation... could this be ANNOTATION_MAXSPEED to match the spelling of maxspeed used everywhere else and to avoid confusion with a "max integer" type constant?
|
@karenzshea good call, just updated. Also finished the |
| /** | ||
| * String indicating the unit of speed, either as `kmh` or `mph`. | ||
| * | ||
| * @param unit either as `kmh` or `mph` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
According to our fastidious colleagues, this technically should say km/h (because kmh apparently indicates a non-existent measure of kilometers of force blablabla 🙄 ). The api will return either km/h or mph
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@karenzshea Yeah thanks for the clarification here. I was 🤔 this when looking at the api docs PR
0af1024 to
f213c4e
Compare
|
Wait - one last question! Does this need tests? |
|
@karenzshea definitely. added our model tests |
|
@osana can we sneak this in for |
|
Added to 3.0 milestone |
7ab51b7 to
a2b2ddc
Compare
|
closed #740 |
cc @karenzshea