Skip to content

Commit

Permalink
Use new BTE URL
Browse files Browse the repository at this point in the history
  • Loading branch information
SmylerMC committed Jan 14, 2024
1 parent 8d6ec22 commit 8d015ef
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/java/fr/thesmyler/terramap/util/geo/GeoServices.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ private GeoServices() {}
public static final String GMAPS_PLACE_URL = "https://www.google.com/maps/place/{place}/@{latitude},{longitude},{zoom}z";
public static final String OSM_SITE_BASE_URL = "https://www.openstreetmap.org/#map={zoom}/{latitude}/{longitude}";
public static final String GEARTH_WEB_BASE_URL = "https://earth.google.com/web/@{latitude},{longitude},0a,10000d,1y,-0h,0t,0r";
public static final String BTE_SITE_BASE_URL = "https://buildtheearth.net/map?lat={latitude}&lon={longitude}&z={zoom}";
public static final String BTE_SITE_BASE_URL = "https://buildtheearth.net/map?z={zoom}&lat={latitude}&lng={longitude}";

public static final String BING_SITE_BASE_URL = "https://www.bing.com/maps?cp={latitude}~{longitude}&lvl={zoom}";
public static final String WIKIMAPIA_SITE_BASE_URL = "https://wikimapia.org/#lat={latitude}&lon={longitude}&z={zoom}";
Expand Down Expand Up @@ -65,7 +65,7 @@ public static String formatStringWithCoords(String str, int zoomLevel, double lo
.replace("{place}", dispPlace);
} catch (UnsupportedEncodingException e) {
TerramapMod.logger.error("Failed to format a string with coordinates: ");
e.printStackTrace();
TerramapMod.logger.catching(e);
}
return str;
}
Expand Down Expand Up @@ -132,9 +132,9 @@ public static void openURI(String uriStr) {
try {
URI uri = new URI(uriStr);
Desktop.getDesktop().browse(uri);
} catch (IOException e) {
} catch (IOException | UnsupportedOperationException e) {
TerramapMod.logger.error("Failed to open uri: " + uriStr);
e.printStackTrace();
TerramapMod.logger.catching(e);
} catch (URISyntaxException e) {
TerramapMod.logger.error("Tried to open a malformed URI: " + uriStr);
}
Expand Down

0 comments on commit 8d015ef

Please sign in to comment.