2010-04-26 18:24:27 +02:00
|
|
|
package com.osmand.data;
|
2010-04-26 17:20:50 +02:00
|
|
|
|
2010-05-14 13:44:35 +02:00
|
|
|
import java.util.ArrayList;
|
2010-04-26 17:20:50 +02:00
|
|
|
import java.util.HashMap;
|
2010-05-14 13:44:35 +02:00
|
|
|
import java.util.List;
|
2010-04-26 17:20:50 +02:00
|
|
|
import java.util.Map;
|
|
|
|
import java.util.Set;
|
|
|
|
|
2010-04-27 14:37:49 +02:00
|
|
|
import com.osmand.osm.Entity;
|
|
|
|
import com.osmand.osm.LatLon;
|
2010-05-14 13:44:35 +02:00
|
|
|
import com.osmand.osm.Node;
|
2010-04-26 17:20:50 +02:00
|
|
|
|
|
|
|
public class Street {
|
|
|
|
|
|
|
|
private final String name;
|
2010-05-14 13:44:35 +02:00
|
|
|
private Map<Entity, LatLon> buildings = new HashMap<Entity, LatLon>();
|
|
|
|
private List<Node> wayNodes = new ArrayList<Node>();
|
2010-04-26 17:20:50 +02:00
|
|
|
|
|
|
|
public Street(String name){
|
|
|
|
this.name = name;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void registerBuilding(LatLon point, Entity e){
|
|
|
|
buildings.put(e, point);
|
|
|
|
}
|
|
|
|
|
|
|
|
public Set<Entity> getBuildings() {
|
|
|
|
return buildings.keySet();
|
|
|
|
}
|
|
|
|
|
|
|
|
public LatLon getLocationBuilding(Entity e){
|
|
|
|
return buildings.get(e);
|
|
|
|
}
|
|
|
|
|
|
|
|
public String getName() {
|
|
|
|
return name;
|
|
|
|
}
|
2010-05-14 13:44:35 +02:00
|
|
|
|
|
|
|
public List<Node> getWayNodes() {
|
|
|
|
return wayNodes;
|
|
|
|
}
|
2010-04-26 17:20:50 +02:00
|
|
|
|
|
|
|
}
|