001 package com.google.gwt.maps.client.services; 002 003 /** 004 * The element-level status about a particular origin-destination pairing returned by the DistanceMatrixService upon completion of a distance matrix request. 005 * <br><br> 006 * See <a href="https://developers.google.com/maps/documentation/javascript/reference#DistanceMatrixElementStatus">DistanceMatrixElementStatus API Doc</a> 007 */ 008 public enum DistanceMatrixElementStatus { 009 010 /** 011 * The origin and/or destination of this pairing could not be geocoded. 012 */ 013 NOT_FOUND, 014 015 /** 016 * The response contains a valid result. 017 */ 018 OK, 019 020 /** 021 * No route could be found between the origin and destination. 022 */ 023 ZERO_RESULTS; 024 025 026 public String value() { 027 return name().toLowerCase(); 028 } 029 030 public static DistanceMatrixElementStatus fromValue(String type) { 031 return valueOf(type.toUpperCase()); 032 } 033 034 public String toString() { 035 return name(); 036 } 037 }