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

de.aipark.api.route.Route Maven / Gradle / Ivy

package de.aipark.api.route;

import com.vividsolutions.jts.geom.Coordinate;
import com.vividsolutions.jts.geom.CoordinateList;
import io.swagger.annotations.ApiModelProperty;

import java.util.List;

/**
 * class containing route information
 */
public class Route {
    @ApiModelProperty(value = "distance in meter")
    private
    Integer distance;

    @ApiModelProperty(value = "duration in seconds")
    private
    Integer duration;

    private List route;

    public Route() {
    }

    public Route(Integer distance, Integer duration, CoordinateList route) {
        this.distance = distance;
        this.duration = duration;
        //noinspection unchecked
        this.route = route;
    }

    public Integer getDistance() {
        return distance;
    }

    public void setDistance(Integer distance) {
        this.distance = distance;
    }

    public Integer getDuration() {
        return duration;
    }

    public void setDuration(Integer duration) {
        this.duration = duration;
    }

    public List getRoute() {
        return route;
    }

    public void setRoute(List route) {
        this.route = route;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy