ctrl alt L

This commit is contained in:
Sem van der Hoeven
2021-01-06 21:19:06 +01:00
parent c778ab2de8
commit c68bbd4062
27 changed files with 142 additions and 165 deletions

View File

@@ -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);