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

org.opentripplanner.openstreetmap.model.OSMRelation Maven / Gradle / Ivy

package org.opentripplanner.openstreetmap.model;

import java.util.ArrayList;
import java.util.List;

public class OSMRelation extends OSMWithTags {

  private 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 - 2024 Weber Informatics LLC | Privacy Policy