Package uk.org.naptan.StopPointStructure.Place

Examples of uk.org.naptan.StopPointStructure.Place.Location


    return null;
  }

  private static Double getLatForStopPoint(StopPointStructure stopPoint) {
    Place place = stopPoint.getPlace();
    Location location = place.getLocation();
    if (location.getLatitude() != null) {
      return location.getLatitude().doubleValue();
    }
    Translation translation = location.getTranslation();
    if (translation.getLatitude() != null) {
      return translation.getLatitude().doubleValue();
    }
    return null;
  }
View Full Code Here


    return null;
  }

  private static Double getLonForStopPoint(StopPointStructure stopPoint) {
    Place place = stopPoint.getPlace();
    Location location = place.getLocation();
    if (location.getLongitude() != null) {
      return location.getLongitude().doubleValue();
    }
    Translation translation = location.getTranslation();
    if (translation.getLongitude() != null) {
      return translation.getLongitude().doubleValue();
    }
    return null;
  }
View Full Code Here

TOP

Related Classes of uk.org.naptan.StopPointStructure.Place.Location

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.