src/main/java/de/blau/android/util/Coordinates.java
/**
     * Convert the coordinates from a list of Nodes to an array of mercator coordinates (in degrees)
     * 
     * @param nodes the List of Nodes
     * @return an array of Coordinates
     */
Convert the coordinates from a list of Nodes to an array of mercator coordinates (in degrees)

@param nodes the List of Nodes
@return an array of Coordinates
Convert the coordinates from a list of Nodes to an array of mercator coordinates ( in degrees ) @param nodes the List of Nodes @return an array of Coordinates
@NonNull
    public static Coordinates[] nodeListToMercatorCoordinateArray(@NonNull List<Node> nodes) {
        int size = nodes.size();
        Coordinates[] points = new Coordinates[size];
        for (int i = 0; i < size; i++) {
            Node node = nodes.get(i);
            points[i] = new Coordinates(node.getLon() / 1E7D, GeoMath.latE7ToMercator(node.getLat()));
        }
        return points;
    }
@ NonNull public static Coordinates [ ] nodeListToMercatorCoordinateArray ( @ NonNull List < Node > nodes ) { int size = nodes . size ( ) ; Coordinates [ ] points = new Coordinates [ size ] ; for ( int i = 0 ; i < size ; i ++ ) { Node node = nodes . get ( i ) ; points [ i ] = new Coordinates ( node . getLon ( ) / 1E7D , GeoMath . latE7ToMercator ( node . getLat ( ) ) ) ; } return points ; }
Convert the coordinates from a list of Nodes to an array of mercator coordinates (in degrees)
Convert the coordinates from a list of Nodes to an array of mercator coordinates ( in degrees )
// loop over all nodes