package com.aplusinformatique.aplusmanager.api.models;

import java.util.List;

/**
 * Created by abhishek
 * on 04/11/17.
 */
public class Directions {

    public static final String STATUS_OK = "OK"; // indicates the response contains a valid result.
    public static final String STATUS_NOT_FOUND = "NOT_FOUND"; // indicates at least one of the locations specified in the request's origin, destination, or waypoints could not be geocoded.
    public static final String STATUS_ZERO_RESULTS = "ZERO_RESULTS"; // indicates no route could be found between the origin and destination.
    public static final String STATUS_MAX_WAYPOINTS_EXCEEDED = "MAX_WAYPOINTS_EXCEEDED"; // indicates that too many waypoints were provided in the request. For applications using the Directions API as a web service, or the directions service in the Maps JavaScript API, the maximum allowed number of waypoints is 25, plus the origin and destination.
    public static final String STATUS_MAX_ROUTE_LENGTH_EXCEEDED = "MAX_ROUTE_LENGTH_EXCEEDED"; // indicates the requested route is too long and cannot be processed. This error occurs when more complex directions are returned. Try reducing the number of waypoints, turns, or instructions.
    public static final String STATUS_INVALID_REQUEST = "INVALID_REQUEST"; // indicates that the provided request was invalid. Common causes of this status include an invalid parameter or parameter value.
    public static final String STATUS_OVER_DAILY_LIMIT = "OVER_DAILY_LIMIT"; //
    public static final String STATUS_OVER_QUERY_LIMIT = "OVER_QUERY_LIMIT"; // indicates the service has received too many requests from your application within the allowed time period..
    public static final String STATUS_REQUEST_DENIED = "REQUEST_DENIED"; // indicates that the service denied use of the directions service by your application.
    public static final String STATUS_UNKNOWN_ERROR = "UNKNOWN_ERROR"; // indicates a directions request could not be processed due to a server error. The request may succeed if you try again.


    public String status;
    public List<GeocodedWayPoints> geocodedWaypoints;
    public List<Routes> routes;

    @Override
    public String toString() {
        return "Directions{" +
                "status='" + status + '\'' +
                ", geocodedWaypoints=" + geocodedWaypoints +
                ", routes=" + routes +
                '}';
    }
}


