OsmAnd/DataExtractionOSM/src/net/osmand/data/Building.java
2011-05-07 22:56:11 +02:00

26 lines
451 B
Java

package net.osmand.data;
import net.osmand.osm.Entity;
import net.osmand.osm.OSMSettings.OSMTagKey;
public class Building extends MapObject {
private String postcode;
public Building(Entity e){
super(e);
// try to extract postcode
postcode = e.getTag(OSMTagKey.ADDR_POSTCODE);
}
public Building(){}
public String getPostcode() {
return postcode;
}
public void setPostcode(String postcode) {
this.postcode = postcode;
}
}