public List<OsmNodeNamed> readPositions(final double[] lons, final double[] lats) {
        final List<OsmNodeNamed> wplist = new ArrayList<>();

        if (lats == null || lats.length < 2 || lons == null || lons.length < 2) {
            return wplist;
        }

        for (int i = 0; i < lats.length && i < lons.length; i++) {
            final OsmNodeNamed n = new OsmNodeNamed();
            n.name = "via" + i;
            n.ilon = (int) ((lons[i] + 180.) * 1000000. + 0.5);
            n.ilat = (int) ((lats[i] + 90.) * 1000000. + 0.5);
            wplist.add(n);
        }

        if (wplist.get(0).name.startsWith("via")) {
            wplist.get(0).name = "from";
        }
        if (wplist.get(wplist.size() - 1).name.startsWith("via")) {
            wplist.get(wplist.size() - 1).name = "to";
        }

        return wplist;
    }
get a list of points (old style, positions only)

@param lons  array with longitudes
@param lats  array with latitudes
@return      a list
main/src/main/java/cgeo/geocaching/brouter/core/RoutingParamCollector.java