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

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

Go to download

AIPARK offers detailed parking information for more than 1.8 Mio parking areas in Germany with nationwide coverage. Additionally, accurate occupancy predictions are derived using data from a network of more than 5 million smartphones. Use the AIPARK API Explorer application to try out and test the interface. Please send a request via email if you are a developer and require an API key. We'll be in touch with you shortly. This application is provided via a demo backend environment. Please note that API load tests do not reflect the performance of the productive system. Mail: [email protected]

The newest version!
package de.aipark.api.route;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.locationtech.jts.geom.Coordinate;
import org.locationtech.jts.geom.CoordinateList;
import org.locationtech.jts.geom.CoordinateXY;

import java.util.List;

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

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

    @ApiModelProperty(value = "GPS-route coordinates, x=longitude, y=latitude", dataType = "List")
    private List route;

    public Route() {
    }

    public Route(Integer distance, Integer duration, List 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 - 2025 Weber Informatics LLC | Privacy Policy