All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.graphhopper.routing.template.AbstractRoutingTemplate Maven / Gradle / Ivy

Go to download

GraphHopper is a fast and memory efficient Java road routing engine working seamlessly with OpenStreetMap data.

The newest version!
package com.graphhopper.routing.template;

import com.graphhopper.storage.index.QueryResult;
import com.graphhopper.util.PointList;
import java.util.List;

/**
 *
 * @author Peter Karich
 */
public class AbstractRoutingTemplate
{
    // result from lookup
    protected List queryResults;

    protected PointList getWaypoints()
    {
        PointList pointList = new PointList(queryResults.size(), true);
        for (QueryResult qr : queryResults)
        {
            pointList.add(qr.getSnappedPoint());
        }
        return pointList;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy