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

org.opentripplanner.model.VehicleRentalStationInfo Maven / Gradle / Ivy

There is a newer version: 2.5.0
Show newest version
package org.opentripplanner.model;

import org.opentripplanner.routing.vertextype.VehicleRentalStationVertex;

/**
 * This is a response model class which holds data that will be serialized and returned to the client.
 * It is not used internally in routing.
 */
public class VehicleRentalStationInfo {

    public String id;
    public String name;
    public Double lat, lon;
    
    public VehicleRentalStationInfo(VehicleRentalStationVertex vertex) {
        id = vertex.getStation().getStationId();
        name = vertex.getDefaultName();
        lat = vertex.getLat();
        lon = vertex.getLon();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy