Search in sources :

Example 1 with ApiAgency

use of org.opentripplanner.api.model.ApiAgency in project OpenTripPlanner by opentripplanner.

the class AgencyMapper method mapToApi.

public static ApiAgency mapToApi(Agency domain) {
    if (domain == null) {
        return null;
    }
    ApiAgency api = new ApiAgency();
    api.id = FeedScopedIdMapper.mapToApi(domain.getId());
    api.name = domain.getName();
    api.url = domain.getUrl();
    api.timezone = domain.getTimezone();
    api.lang = domain.getLang();
    api.phone = domain.getPhone();
    api.fareUrl = domain.getFareUrl();
    api.brandingUrl = domain.getBrandingUrl();
    return api;
}
Also used : ApiAgency(org.opentripplanner.api.model.ApiAgency)

Aggregations

ApiAgency (org.opentripplanner.api.model.ApiAgency)1