ctrl alt L
This commit is contained in:
@@ -2,9 +2,6 @@ package com.a1.nextlocation.json;
|
||||
|
||||
import com.google.gson.JsonArray;
|
||||
|
||||
import org.json.JSONArray;
|
||||
import org.json.JSONException;
|
||||
|
||||
/**
|
||||
* source: https://github.com/GIScience/openrouteservice-docs#geometry-decoding
|
||||
*/
|
||||
@@ -39,7 +36,7 @@ public class GeometryDecoder {
|
||||
lng += (result & 1) != 0 ? ~(result >> 1) : (result >> 1);
|
||||
|
||||
|
||||
if(inclElevation){
|
||||
if (inclElevation) {
|
||||
result = 1;
|
||||
shift = 0;
|
||||
do {
|
||||
@@ -53,7 +50,7 @@ public class GeometryDecoder {
|
||||
JsonArray location = new JsonArray();
|
||||
location.add(lat / 1E5);
|
||||
location.add(lng / 1E5);
|
||||
if(inclElevation){
|
||||
if (inclElevation) {
|
||||
location.add((float) (ele / 100));
|
||||
}
|
||||
geometry.add(location);
|
||||
|
||||
Reference in New Issue
Block a user