
org.opentripplanner.framework.geometry.EncodedPolyline Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of otp Show documentation
Show all versions of otp Show documentation
The OpenTripPlanner multimodal journey planning system
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