I just created a small piece of java-code, which allows you to receive geo coordinates (longitude / latitude) for a certain address.

It’s quite simple to use:

final CoordinateTool ct = new CoordinateTool();
final Coordinate coord = ct.getCoordinateForAddress(YOUR_ADDRESS);

Another feature is the possibility to load a route from A to B. You have the possibility to get this route as String or to save it to a File.

final CoordinateTool ct = new CoordinateTool();
final String route = ct.getRouteForAddresses(YOUR_ADDRESS, YOUR_DESTINATION);
ct.saveRouteForAddresses(YOUR_ADDRESS, YOUR_DESTINATION, FILENAME);

If you need the distance between two addresses or coordinates, you can use this “getDistanceBetween” method.

Download:

Library

Source.


Related Posts



Eine Antwort schreiben