public class HouseNumber extends Object implements Comparable<HouseNumber>
OpenStreetMap
.Modifier and Type | Field and Description |
---|---|
static String |
LOCATION_COLUMN_NAME |
Constructor and Description |
---|
HouseNumber()
Needed by CGLib
|
HouseNumber(String number,
com.vividsolutions.jts.geom.Point location) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(HouseNumber o) |
boolean |
equals(Object obj) |
Long |
getId() |
Double |
getLatitude() |
com.vividsolutions.jts.geom.Point |
getLocation()
Returns The JTS location point of the current house : The Geometry
representation for the latitude, longitude.
|
Double |
getLongitude() |
String |
getName() |
String |
getNumber() |
Long |
getOpenstreetmapId() |
OpenStreetMap |
getStreet() |
HouseNumberType |
getType() |
int |
hashCode() |
boolean |
is_same(Object obj)
check if address are content identical
If number are equals and street (if number is null, we look at the name)
|
void |
setId(Long id) |
void |
setLocation(com.vividsolutions.jts.geom.Point location) |
void |
setName(String name) |
void |
setNumber(String number) |
void |
setOpenstreetmapId(Long openstreetmapId) |
void |
setStreet(OpenStreetMap street) |
void |
setType(HouseNumberType type) |
String |
toString() |
public static final String LOCATION_COLUMN_NAME
public HouseNumber()
public HouseNumber(String number, com.vividsolutions.jts.geom.Point location)
public Long getId()
public void setId(Long id)
id
- the id to setpublic Long getOpenstreetmapId()
public void setOpenstreetmapId(Long openstreetmapId)
openstreetmapId
- the openstreetmap internal idpublic String getName()
public void setName(String name)
name
- the name to setpublic com.vividsolutions.jts.geom.Point getLocation()
SRID
SRID
public Double getLatitude()
getLocation()
.getLongitude()
,
getLocation()
public Double getLongitude()
getLocation()
.getLongitude()
,
getLocation()
public void setLocation(com.vividsolutions.jts.geom.Point location)
location
- the location to setpublic String getNumber()
public void setNumber(String number)
number
- the number to setpublic HouseNumberType getType()
for details
public void setType(HouseNumberType type)
type
- the type to setpublic OpenStreetMap getStreet()
public void setStreet(OpenStreetMap street)
street
- the street to setpublic boolean is_same(Object obj)
public int compareTo(HouseNumber o)
compareTo
in interface Comparable<HouseNumber>
Copyright © 2015. All rights reserved.