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

org.opentripplanner.routing.vehicle_rental.VehicleRentalStationUris Maven / Gradle / Ivy

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

import javax.annotation.Nullable;

/**
 * Contains rental URIs for Android, iOS, and web in the android, ios, and web fields. See the
 * GBFS station_information.json specification
 * for more details.
 */
public class VehicleRentalStationUris {

    /**
     * A URI that can be passed to an Android app with an {@code android.intent.action.VIEW} Android
     * intent to support Android Deep Links.
     *
     * May be {@code null} if a rental URI does not exist.
     */
    @Nullable
    public final String android;

    /**
     * A URI that can be used on iOS to launch the rental app for this station.
     *
     * May be {@code null} if a rental URI does not exist.
     */
    @Nullable
    public final String ios;

    /**
     * At URL that can be used by a web browser to show more information about renting a vehicle at
     * this station.
     *
     * May be {@code null} if a rental URL does not exist.
     */
    @Nullable
    public final String web;

    public VehicleRentalStationUris(String android, String ios, String web) {
        this.android = android;
        this.ios = ios;
        this.web = web;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy