This is easier to parse.
Signed-off-by: Keith Packard <keithp@keithp.com>
}
private static String altos_map_url(AltosLatLon center, int zoom, int maptype, int px_size, int scale, String format_string) {
- return String.format("https://maps.altusmetrum.org/altos-map?center=%.6f,%.6f&zoom=%d",
+ return String.format("https://maps.altusmetrum.org/cgi-bin/altos-map?lat=%.6f&lon=%.6f&zoom=%d",
center.lat, center.lon, zoom);
}
Encoding this in a URI is straightforward:
-\ altos-map?center=<lat>,<lon>&zoom=<zoom>
+\ altos-map?lat=<lat>&lon=<lon>&zoom=<zoom>
Latitude and longitude are both encoded using decimal degrees with 6
digits following the decimal point.