-
Notifications
You must be signed in to change notification settings - Fork 117
add getting mapmatching through POST method #948
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
15dabc7 to
3cc596f
Compare
3cc596f to
d90e3ed
Compare
Guardiola31337
left a comment
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.
I've left a couple of minor comments. Other than that this looks good to me 👍
Thanks @osana for adding the POST support to the Map Matching API.
|
|
||
|
|
||
| /** | ||
| * Constructs the POSt call using the information passed in through the |
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.
Minor thing - Typo *POSt instead of POST
| */ | ||
| @FormUrlEncoded | ||
| @POST("matching/v5/{user}/{profile}") | ||
| Call<MapMatchingResponse> getPostCall( |
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.
Isn't the get in
mapbox-java/services-matching/src/main/java/com/mapbox/api/matching/v5/MapMatchingService.java
Line 69 in d90e3ed
| Call<MapMatchingResponse> getCall( |
GET request? If so, should we name this method postCall instead?
40d0001 to
daeb546
Compare
| private String[] approaches; | ||
|
|
||
| /** | ||
| * Use GET method to request data (default). |
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.
Minor comment - Shouldn't this be POST instead of GET? It seems it got reversed with the get method below 👇
daeb546 to
10c9a53
Compare
10c9a53 to
236b4e4
Compare
Guardiola31337
left a comment
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.
This is looking good 🚀
Thanks for addressing the feedback @osana
closes #947