completed parser for reparier-cafe jena
Build Docker Image / Docker-Build (push) Failing after 17s
Build Docker Image / Clean-Registry (push) Failing after 6s

Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
2026-08-31 17:46:00 +02:00
parent 3167065232
commit f3752a1939
4 changed files with 120 additions and 7 deletions
@@ -10,6 +10,11 @@ import org.json.JSONObject;
* @param longitude the longitude
*/
public record Coords(double latitude,double longitude) {
public static Coords from(String geo) {
var parts = geo.split(";");
return new Coords(Double.parseDouble(parts[0]), Double.parseDouble(parts[1]));
}
/**
* get a string representing this coords in the ICAL format, see <a href="https://datatracker.ietf.org/doc/html/rfc5545#section-3.8.1.6">iCalendar spec</a>
* @return the formatted coords