org.opentripplanner.openstreetmap.model.OSMRelation 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
package org.opentripplanner.openstreetmap.model;
import java.util.ArrayList;
import java.util.List;
public class OSMRelation extends OSMWithTags {
private final List members = new ArrayList<>();
public void addMember(OSMRelationMember member) {
members.add(member);
}
public List getMembers() {
return members;
}
public String toString() {
return "osm relation " + id;
}
@Override
public String getOpenStreetMapLink() {
return String.format("http://www.openstreetmap.org/relation/%d", getId());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy