Skip to content

Add support for direction annotations#417

Merged
cammace merged 1 commit into
masterfrom
cam-annotations
Mar 30, 2017
Merged

Add support for direction annotations#417
cammace merged 1 commit into
masterfrom
cam-annotations

Conversation

@cammace

@cammace cammace commented Mar 29, 2017

Copy link
Copy Markdown

closes #334

@mention-bot

Copy link
Copy Markdown

@cammace, thanks for your PR! By analyzing the history of the files in this pull request, we identified @zugaldia, @tobrun and @ivovandongen to be potential reviewers.

&& !annotationEntry.equals(DirectionsCriteria.ANNOTATION_DURATION)
&& !annotationEntry.equals(DirectionsCriteria.ANNOTATION_SPEED)) {
throw new ServicesException(
"Annotation value must be one of the constants found inside the DirectionsCriteria file");

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cammace values instead of file

"Annotation request can only contain one of the three DirectionsCriteria constants.");
}

System.out.println(annotation[0]);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's remove this line.

client.enqueueCall(new Callback<DirectionsResponse>() {
@Override
public void onResponse(Call<DirectionsResponse> call, Response<DirectionsResponse> response) {
Log.d(LOG_TAG, call.request().url().toString());

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you meant to leave this line, let's add a more detailed message of what the developer is seeing.

@cammace cammace merged commit 9ce67ca into master Mar 30, 2017
@cammace cammace deleted the cam-annotations branch March 30, 2017 18:43
@cammace cammace mentioned this pull request Apr 15, 2017
13 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support for directions annotations

3 participants