Actually read type from geojson and the id

Signed-off-by: Taylor Smock <taylor.smock@kaart.com>
pull/1/head
Taylor Smock 2020-05-20 11:00:12 -06:00
rodzic 0a3bf38cb8
commit d96100c67d
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 625F6A74A3E4311A
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -98,9 +98,9 @@ public class MapWithAISourceReader implements Closeable {
if (JsonValue.ValueType.OBJECT.equals(entry.getValue().getValueType())) {
JsonObject values = entry.getValue().asJsonObject();
String url = values.getString("url", "");
String type = MapWithAIInfo.MapWithAIType.THIRD_PARTY.getTypeString();
String type = values.getString("type", MapWithAIInfo.MapWithAIType.THIRD_PARTY.getTypeString());
String eula = values.getString("eula", "");
String id = name.replace(" ", "_");
String id = values.getString("id", name.replace(" ", "_"));
JsonValue countries = values.getOrDefault("countries", JsonValue.EMPTY_JSON_OBJECT);
List<ImageryBounds> bounds = new ArrayList<>();
if (JsonValue.ValueType.OBJECT.equals(countries.getValueType())) {