OsmAnd/DataExtractionOSM/src/com/osmand/data/Building.java
andrei.adamian 42426f041f Add postcode search
git-svn-id: https://osmand.googlecode.com/svn/trunk@165 e29c36b1-1cfa-d876-8d93-3434fc2bb7b8
2010-06-15 18:54:50 +00:00

26 lines
477 B
Java

package com.osmand.data;
import com.osmand.osm.Entity;
import com.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;
}
}