2010-05-14 23:05:18 +02:00
|
|
|
package com.osmand.data;
|
|
|
|
|
|
|
|
import com.osmand.osm.Entity;
|
2010-06-15 20:54:50 +02:00
|
|
|
import com.osmand.osm.OSMSettings.OSMTagKey;
|
2010-05-14 23:05:18 +02:00
|
|
|
|
2010-05-27 13:02:02 +02:00
|
|
|
public class Building extends MapObject {
|
2010-06-15 20:54:50 +02:00
|
|
|
|
|
|
|
private String postcode;
|
2010-05-14 23:05:18 +02:00
|
|
|
|
|
|
|
public Building(Entity e){
|
2010-05-17 14:03:16 +02:00
|
|
|
super(e);
|
2010-06-15 20:54:50 +02:00
|
|
|
// try to extract postcode
|
|
|
|
postcode = e.getTag(OSMTagKey.ADDR_POSTCODE);
|
2010-05-14 23:05:18 +02:00
|
|
|
}
|
2010-05-16 23:49:11 +02:00
|
|
|
|
|
|
|
public Building(){}
|
2010-06-15 20:54:50 +02:00
|
|
|
|
|
|
|
public String getPostcode() {
|
|
|
|
return postcode;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setPostcode(String postcode) {
|
|
|
|
this.postcode = postcode;
|
|
|
|
}
|
2010-05-14 23:05:18 +02:00
|
|
|
|
|
|
|
}
|