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