Subversion Repositories Projects

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2287 - 1

2
namespace GMap.NET
3
{
4
   /// <summary>
5
   /// GeoCoder StatusCode
6
   /// </summary>
7
   public enum GeoCoderStatusCode : int
8
   {
9
      /// <summary>
10
      /// unknow response
11
      /// </summary>
12
      Unknow = -1,
13
 
14
      /// <summary>
15
      /// No errors occurred; the address was successfully parsed and its geocode has been returned.
16
      /// </summary>
17
      G_GEO_SUCCESS = 200,
18
 
19
      /// <summary>
20
      /// A directions request could not be successfully parsed.
21
      /// For example, the request may have been rejected if it contained more than the maximum number of waypoints allowed.
22
      /// </summary>  
23
      G_GEO_BAD_REQUEST = 400,
24
 
25
      /// <summary>
26
      /// A geocoding or directions request could not be successfully processed, yet the exact reason for the failure is not known.
27
      /// </summary>
28
      G_GEO_SERVER_ERROR = 500,
29
 
30
      /// <summary>
31
      /// The HTTP q parameter was either missing or had no value.
32
      /// For geocoding requests, this means that an empty address was specified as input. For directions requests, this means that no query was specified in the input.
33
      /// </summary>
34
      G_GEO_MISSING_QUERY = 601,
35
 
36
      /// <summary>
37
      /// Synonym for G_GEO_MISSING_QUERY.
38
      /// </summary>
39
      G_GEO_MISSING_ADDRESS = 601,
40
 
41
      /// <summary>
42
      ///  No corresponding geographic location could be found for the specified address.
43
      ///  This may be due to the fact that the address is relatively new, or it may be incorrect.
44
      /// </summary>
45
      G_GEO_UNKNOWN_ADDRESS = 602,
46
 
47
      /// <summary>
48
      /// The geocode for the given address or the route for the given directions query cannot be returned due to legal or contractual reasons.
49
      /// </summary>
50
      G_GEO_UNAVAILABLE_ADDRESS = 603,
51
 
52
      /// <summary>
53
      /// The GDirections object could not compute directions between the points mentioned in the query.
54
      /// This is usually because there is no route available between the two points, or because we do not have data for routing in that region.
55
      /// </summary>
56
      G_GEO_UNKNOWN_DIRECTIONS = 604,
57
 
58
      /// <summary>
59
      /// The given key is either invalid or does not match the domain for which it was given.
60
      /// </summary>
61
      G_GEO_BAD_KEY = 610,
62
 
63
      /// <summary>
64
      /// The given key has gone over the requests limit in the 24 hour period or has submitted too many requests in too short a period of time.
65
      /// If you're sending multiple requests in parallel or in a tight loop, use a timer or pause in your code to make sure you don't send the requests too quickly.
66
      /// </summary>
67
      G_GEO_TOO_MANY_QUERIES = 620,
68
 
69
      /// <summary>
70
      /// indicates that exception occured during execution
71
      /// </summary>
72
      ExceptionInCode,
73
   }
74
 
75
   /// <summary>
76
   /// Direction StatusCode
77
   /// </summary>
78
   public enum DirectionsStatusCode : int
79
   {
80
      /// <summary>
81
      /// indicates the response contains a valid result.
82
      /// </summary>
83
      OK = 0,
84
 
85
      /// <summary>
86
      /// indicates at least one of the locations specified in the requests's origin, destination, or waypoints could not be geocoded.
87
      /// </summary>
88
      NOT_FOUND,
89
 
90
      /// <summary>
91
      /// indicates no route could be found between the origin and destination.
92
      /// </summary>
93
      ZERO_RESULTS,
94
 
95
      /// <summary>
96
      ///  indicates that too many waypointss were provided in the request The maximum allowed waypoints is 8, plus the origin, and destination.
97
      /// </summary>
98
      MAX_WAYPOINTS_EXCEEDED,
99
 
100
      /// <summary>
101
      /// indicates that the provided request was invalid.
102
      /// </summary>
103
      INVALID_REQUEST,
104
 
105
      /// <summary>
106
      /// indicates the service has received too many requests from your application within the allowed time period.
107
      /// </summary>
108
      OVER_QUERY_LIMIT,
109
 
110
      /// <summary>
111
      /// indicates that the service denied use of the directions service by your application.
112
      /// </summary>
113
      REQUEST_DENIED,
114
 
115
      /// <summary>
116
      /// indicates a directions request could not be processed due to a server error. The request may succeed if you try again.
117
      /// </summary>
118
      UNKNOWN_ERROR,
119
 
120
      /// <summary>
121
      /// indicates that exception occured during execution
122
      /// </summary>
123
      ExceptionInCode,
124
   }
125
}