Fix Gpx online routing server request url preparation
This commit is contained in:
parent
ade9b22e56
commit
16e631614e
1 changed files with 6 additions and 2 deletions
|
@ -46,11 +46,15 @@ public class GpxEngine extends OnlineRoutingEngine {
|
|||
@Override
|
||||
protected void makeFullUrl(@NonNull StringBuilder sb,
|
||||
@NonNull List<LatLon> path) {
|
||||
sb.append("?");
|
||||
for (int i = 0; i < path.size(); i++) {
|
||||
LatLon point = path.get(i);
|
||||
sb.append(point.getLongitude()).append(',').append(point.getLatitude());
|
||||
sb.append("point=")
|
||||
.append(point.getLatitude())
|
||||
.append(',')
|
||||
.append(point.getLongitude());
|
||||
if (i < path.size() - 1) {
|
||||
sb.append(';');
|
||||
sb.append('&');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue