public class OpenStreetMap extends Object
Street
that represent a street in Geonames.Modifier and Type | Field and Description |
---|---|
static String |
FULLTEXTSEARCH_COLUMN_NAME
Name of the column that is equals to store a string that is used for
fulltext search. it deffer form the @
FULLTEXTSEARCH_COLUMN_NAME
because Hibernate, by default, lowercase the property to get the column
name This value should be change if the getter and the setter of the
getTextsearchVector() change |
static String |
FULLTEXTSEARCH_PROPERTY_NAME
Name of the field property in hibernate.
|
static String |
FULLTEXTSEARCH_VECTOR_PROPERTY_NAME
Name of the column that is equals to to_tsvector(
FULLTEXTSEARCH_COLUMN_NAME It is used to do Fulltext search with
the postgres text search module (to use the index). |
static String |
LOCATION_COLUMN_NAME |
protected static org.slf4j.Logger |
logger |
static int |
MAX_ALTERNATENAME_SIZE |
static String |
SHAPE_COLUMN_NAME |
Constructor and Description |
---|
OpenStreetMap()
Needed by CGLib
|
Modifier and Type | Method and Description |
---|---|
void |
addAlternateName(AlternateOsmName alternateName)
Do a double set : add the alternate name to the current GisFeature and set
this GisFeature as the GisFeature of the specified AlternateName
|
void |
addAlternateNames(List<AlternateOsmName> alternateNames)
Do a double set : add (not replace !)
|
void |
addHouseNumber(HouseNumber houseNumber)
Do a double set : add the house number to the current street and set
this street as the street of the specified AlternateName
|
void |
addHouseNumbers(List<HouseNumber> HouseNumbers)
Do a double set : add (not replace !)
|
void |
addIsInCitiesAlternateName(String isInCityAlternateName) |
void |
addIsInCitiesAlternateNames(Collection<String> isInCityAlternateNames) |
void |
addZip(String zip)
add a zip
|
void |
addZips(Collection<String> zips)
add zips
|
boolean |
equals(Object obj) |
List<AlternateOsmName> |
getAlternateNames() |
String |
getCountryCode() |
String |
getFullyQualifiedAddress() |
Long |
getGid() |
SortedSet<HouseNumber> |
getHouseNumbers() |
Long |
getId() |
String |
getIsIn() |
String |
getIsInAdm() |
Set<String> |
getIsInCityAlternateNames()
This field is only for relevance and allow to search for street<->cities in
many alternateNames.
|
String |
getIsInPlace() |
Set<String> |
getIsInZip() |
Double |
getLatitude() |
Double |
getLength() |
com.vividsolutions.jts.geom.Point |
getLocation()
Returns The JTS location point of the current street : The Geometry
representation for the latitude, longitude.
|
Double |
getLongitude() |
String |
getName() |
Long |
getOpenstreetmapId() |
String |
getPartialSearchName()
(Experimental) This String is used to search for a part of a street name
|
String |
getPartialsearchVector()
IT DOES NOTHING.
|
Integer |
getPopulation() |
com.vividsolutions.jts.geom.LineString |
getShape() |
com.gisgraphy.street.StreetType |
getStreetType() |
String |
getTextSearchName()
This value is use to do a Fulltext search for a street name with index
|
String |
getTextsearchVector()
IT DOES NOTHING.
|
int |
hashCode() |
boolean |
isCityConfident() |
boolean |
isOneWay() |
void |
setAlternateNames(List<AlternateOsmName> alternateNames) |
void |
setCityConfident(boolean cityConfident) |
void |
setCountryCode(String countryCode) |
void |
setFullyQualifiedAddress(String fullyQualifiedAddress) |
void |
setGid(Long gid) |
void |
setHouseNumbers(SortedSet<HouseNumber> houseNumbers) |
void |
setId(Long id) |
void |
setIsIn(String isIn) |
void |
setIsInAdm(String isInAdm) |
void |
setIsInCityAlternateNames(Set<String> isInCityAlternateNames) |
void |
setIsInPlace(String isInPlace) |
void |
setIsInZip(Set<String> isInZip) |
void |
setLength(Double length) |
void |
setLocation(com.vividsolutions.jts.geom.Point location) |
void |
setName(String name) |
void |
setOneWay(boolean oneWay) |
void |
setOpenstreetmapId(Long openstreetmapId) |
void |
setPartialSearchName(String partialSearchName) |
void |
setPartialsearchVector(String partialsearchVector)
IT DOES NOTHING.
|
void |
setPopulation(Integer population) |
void |
setShape(com.vividsolutions.jts.geom.LineString shape) |
void |
setStreetType(com.gisgraphy.street.StreetType streetType) |
void |
setTextSearchName(String textSearchName) |
void |
setTextsearchVector(String textsearchVector)
IT DOES NOTHING.
|
String |
toString() |
protected static final org.slf4j.Logger logger
public static final String SHAPE_COLUMN_NAME
public static final int MAX_ALTERNATENAME_SIZE
public static final String FULLTEXTSEARCH_VECTOR_PROPERTY_NAME
FULLTEXTSEARCH_COLUMN_NAME
It is used to do Fulltext search with
the postgres text search module (to use the index). This value should be
change if the getter and the setter of the textSearchName
changepublic static final String FULLTEXTSEARCH_PROPERTY_NAME
getTextsearchVector()
changeStreetSearchMode.FULLTEXT
,
Constant Field Valuespublic static final String FULLTEXTSEARCH_COLUMN_NAME
FULLTEXTSEARCH_COLUMN_NAME
because Hibernate, by default, lowercase the property to get the column
name This value should be change if the getter and the setter of the
getTextsearchVector()
changeStreetSearchMode.FULLTEXT
public static final String LOCATION_COLUMN_NAME
public List<AlternateOsmName> getAlternateNames()
AlternateName
s for this GisFeaturepublic void setAlternateNames(List<AlternateOsmName> alternateNames)
alternateNames
- The AlternateName
s for this GisFeaturepublic void addAlternateName(AlternateOsmName alternateName)
alternateName
- the alternateName to addpublic void addAlternateNames(List<AlternateOsmName> alternateNames)
alternateNames
- The alternateNames list to addpublic String getPartialSearchName()
StreetSearchMode.CONTAINS
public void setPartialSearchName(String partialSearchName)
partialSearchName
- the partialSearchName to setpublic String getTextSearchName()
public void setTextSearchName(String textSearchName)
textSearchName
- the textSearchName to setpublic String getTextsearchVector()
public void setTextsearchVector(String textsearchVector)
textsearchVector
- the textsearchVector to setpublic String getPartialsearchVector()
public void setPartialsearchVector(String partialsearchVector)
partialsearchVector
- the ilikesearch to setpublic Long getId()
public void setId(Long id)
id
- the id to setpublic Long getGid()
openstreetmapId
because the value can not be in conflict between geonames and openstreetmappublic void setGid(Long gid)
gid
- the gid 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.gisgraphy.street.StreetType getStreetType()
public void setStreetType(com.gisgraphy.street.StreetType streetType)
streetType
- the streetType to setpublic boolean isOneWay()
public void setOneWay(boolean oneWay)
oneWay
- the oneWay 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 com.vividsolutions.jts.geom.LineString getShape()
public void setShape(com.vividsolutions.jts.geom.LineString shape)
shape
- the shape to setpublic String getCountryCode()
public void setCountryCode(String countryCode)
countryCode
- the countryCode to setpublic Double getLength()
public void setLength(Double length)
length
- the length to setpublic String getIsIn()
public void setIsIn(String isIn)
isIn
- The city or state or any information where the street is
locatedpublic String getIsInPlace()
isIn
is filled and we got more specific details (generally quarter, neighborhood)public void setIsInPlace(String isInPlace)
isInPlace
- the most precise information on where the street is located,
generally quarter neighborhoodpublic String getIsInAdm()
public void setIsInAdm(String isInAdm)
isInAdm
- the adm (aka administrative division) where the street is locatedpublic void setIsInZip(Set<String> isInZip)
isInZip
- the zipcode where the street is located.public void addZip(String zip)
public void addZips(Collection<String> zips)
public String getFullyQualifiedAddress()
public void setFullyQualifiedAddress(String fullyQualifiedAddress)
public Integer getPopulation()
public void setPopulation(Integer population)
public SortedSet<HouseNumber> getHouseNumbers()
public void setHouseNumbers(SortedSet<HouseNumber> houseNumbers)
houseNumbers
- the houseNumbers to setpublic void addHouseNumber(HouseNumber houseNumber)
houseNumber
- the houseNumber to addpublic void addHouseNumbers(List<HouseNumber> HouseNumbers)
HouseNumbers
- The House Numbers list to addpublic boolean isCityConfident()
public void setCityConfident(boolean cityConfident)
public Set<String> getIsInCityAlternateNames()
public void addIsInCitiesAlternateName(String isInCityAlternateName)
public void addIsInCitiesAlternateNames(Collection<String> isInCityAlternateNames)
Copyright © 2015. All rights reserved.