All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.opentripplanner.framework.geometry.EncodedPolyline Maven / Gradle / Ivy

The newest version!
package org.opentripplanner.framework.geometry;

import java.io.Serializable;
import org.locationtech.jts.geom.Geometry;

/**
 * A list of coordinates encoded as a string.
 * 

* See Encoded * polyline algorithm format */ public record EncodedPolyline(String points, int length) implements Serializable { public static EncodedPolyline encode(Geometry geometry) { return PolylineEncoder.encodeGeometry(geometry); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy