diff --git a/src/main/java/com/example/cosmos_serversb/models/Shops.java b/src/main/java/com/example/cosmos_serversb/models/Shops.java index 64210b5..ae41dc3 100644 --- a/src/main/java/com/example/cosmos_serversb/models/Shops.java +++ b/src/main/java/com/example/cosmos_serversb/models/Shops.java @@ -103,7 +103,7 @@ String code = jnode.get("Feature").get(j).get("Property").get("Genre").get(0).get("Code").asText(); String location = jnode.get("Feature").get(j).get("Geometry").get("Coordinates").asText(); String[] split = location.split(","); - Shop shop = new Shop(genre, Integer.parseInt(code), Double.parseDouble(split[0]), Double.parseDouble(split[1])); + Shop shop = new Shop(genre, Integer.parseInt(code), Double.parseDouble(split[1]), Double.parseDouble(split[0])); shops.add(shop); } }