001    package com.google.gwt.maps.client.services;
002    
003    /**
004     * Elevation Status constant.
005     * <br><br>
006     * See <a href="https://developers.google.com/maps/documentation/javascript/reference#ElevationStatus">ElevationStatus API Doc</a>
007     */
008    public enum ElevationStatus {
009    
010      /**
011       * This request was invalid.
012       */
013      INVALID_REQUEST,
014      
015      /**
016       * The request did not encounter any errors.
017       */
018      OK,
019      
020      /**
021       * The webpage has gone over the requests limit in too short a period of time. 
022       */
023      OVER_QUERY_LIMIT,
024      
025      /**
026       * The webpage is not allowed to use the elevation service for some reason. 
027       */
028      REQUEST_DENIED,
029      
030      /**
031       * A geocoding, directions or elevation request could not be successfully processed, yet the exact reason for the failure is not known.
032       */
033      UNKNOWN_ERROR;
034      
035      public String value() {
036        return name().toLowerCase();
037      }
038      
039      public static ElevationStatus fromValue(String type) {
040        return valueOf(type.toUpperCase());
041      }
042    
043      public String toString() {
044        return name();
045      }
046      
047    }