org.osmtools.data.SimpleSection Maven / Gradle / Ivy
package org.osmtools.data;
import java.util.ArrayList;
import java.util.List;
import org.osmtools.api.LonLat;
import org.osmtools.api.Section;
public class SimpleSection implements Section {
private String name;
private List nodes = new ArrayList();
public SimpleSection(String name) {
this.name = name;
}
@Override
public String getName() {
return name;
}
public void addNode(Node node) {
nodes.add(node);
}
@Override
public List> getCoordinateLists() {
List> nodeList = new ArrayList>();
nodeList.add(nodes);
return nodeList;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy