public class RouteGuideUtil extends Object
| Constructor and Description |
|---|
RouteGuideUtil() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
exists(Feature feature)
Indicates whether the given feature exists (i.e.
|
static URL |
getDefaultFeaturesFile()
Gets the default features file from classpath.
|
static double |
getLatitude(Point location)
Gets the latitude for the given point.
|
static double |
getLongitude(Point location)
Gets the longitude for the given point.
|
static List<Feature> |
parseFeatures(URL file)
Parses the JSON input file containing the list of features.
|
public static double getLatitude(Point location)
public static double getLongitude(Point location)
public static URL getDefaultFeaturesFile()
public static List<Feature> parseFeatures(URL file) throws IOException
IOExceptionpublic static boolean exists(Feature feature)