use of org.rutebanken.netex.model.LinkSequenceProjection in project OpenTripPlanner by opentripplanner.
the class ServiceLinkMapperTest method createServiceLink.
private ServiceLink createServiceLink(String id, double distance, Double[] coordinates) {
DirectPositionListType directPositionListType = new DirectPositionListType().withValue(coordinates);
LinkSequenceProjection linkSequenceProjection = new LinkSequenceProjection().withLineString(new LineStringType().withPosList(directPositionListType));
JAXBElement<LinkSequenceProjection_VersionStructure> linkSequenceProjection_versionStructure = MappingSupport.createJaxbElement(linkSequenceProjection);
Projections_RelStructure projections_relStructure = new Projections_RelStructure().withProjectionRefOrProjection(linkSequenceProjection_versionStructure);
return new ServiceLink().withId(id).withDistance(new BigDecimal(distance)).withProjections(projections_relStructure);
}
Aggregations