com.gisgraphy.domain.valueobject
Class StreetDistance
java.lang.Object
com.gisgraphy.domain.valueobject.StreetDistance
public class StreetDistance
- extends java.lang.Object
Value object that represents a StreetOSM with a distance The JAXB node name
is Constants.STREETDISTANCE_JAXB_NAME
- Author:
- David Masclet
Field Summary |
protected static org.slf4j.Logger |
logger
|
Constructor Summary |
StreetDistance()
Default Constructor needed by cglib |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
protected static final org.slf4j.Logger logger
StreetDistance
public StreetDistance()
- Default Constructor needed by cglib
updateFields
public void updateFields()
- update the calculated fields (lat,lng,...)
getName
public java.lang.String getName()
- Returns:
- the name
getDistance
public java.lang.Double getDistance()
- Returns:
- the distance
getGid
public java.lang.Long getGid()
- Returns:
- the gid
getStreetType
public StreetType getStreetType()
- Returns:
- the streetType
getOneWay
public java.lang.Boolean getOneWay()
- Returns:
- the oneWay
getCountryCode
public java.lang.String getCountryCode()
- Returns:
- the countryCode
getLength
public java.lang.Double getLength()
- Returns:
- the length
getLat
public java.lang.Double getLat()
- Returns:
- the lat
getLng
public java.lang.Double getLng()
- Returns:
- the lng
getLocation
public com.vividsolutions.jts.geom.Point getLocation()
- Returns:
- the location
Copyright © 2010. All Rights Reserved.