|
Routify Documentation
|
Static Public Member Functions | |
| static void | main (String[] args) throws Exception |
| static CustomVertex | getCoordinates (String address) throws Exception |
| static Tuple2< CustomVertex, CustomVertex > | resolveRequestAddresses (JSONObject data) throws Exception |
| static String | getHTML (String urlToRead) throws Exception |
The RevGeoCode class provides functionality to reverse geocode addresses to geographic coordinates using the Photon GeoCoder. It includes methods to convert an address string to a CustomVertex object representing its geographic location (latitude and longitude).
|
inlinestatic |
Converts an address to a CustomVertex object representing its geographic coordinates (latitude and longitude).
| address | The address to geocode. |
CustomVertex object with the geographic coordinates. | Exception | if the address cannot be resolved or if an error occurs during the process. |
|
inlinestatic |
Makes an HTTP GET request to the specified URL and returns the response content as a string.
| urlToRead | The URL to send the GET request to. |
| Exception | if an error occurs during the HTTP request. |
|
inlinestatic |
Main method for testing the reverse geocoding functionality.
| args | Command line arguments (not used). |
| Exception | if there is an issue with the reverse geocoding process. |
|
inlinestatic |
Resolves the request addresses to CustomVertex objects based on the input data.
| data | A JSONObject containing the request data. |
Tuple2 containing the resolved start and end CustomVertex. | Exception | if the addresses cannot be resolved. |