Skip to content

Commit 7a0ec35

Browse files
authored
Merge pull request #9 from SimpliRoute/add-profile-parameter
Add missing parameter
2 parents f9b41fe + 01310b1 commit 7a0ec35

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/java/com/osrm/client/Main.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ public static void main(String[] args) throws EmptyUrlException {
2525
// token
2626
String token = "None";
2727

28-
OSRMDistanceResponse response = client.getDistanceMatrix(locations, speedRate, country, token);
28+
String profile = "car";
29+
30+
OSRMDistanceResponse response = client.getDistanceMatrix(locations, speedRate, country, token, profile);
2931

3032
System.out.println(response);
3133
}

0 commit comments

Comments
 (0)