• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1{
2 "kind": "discovery#restDescription",
3 "id": "latitude:v1",
4 "name": "latitude",
5 "version": "v1",
6 "description": "Google Latitude API",
7 "icons": {
8  "x16": "http://www.google.com/images/icons/product/search-16.gif",
9  "x32": "http://www.google.com/images/icons/product/search-32.gif"
10 },
11 "labels": [
12  "labs"
13 ],
14 "protocol": "rest",
15 "basePath": "/latitude/v1/",
16 "rootUrl": "https://www.googleapis.com/",
17 "servicePath": "latitude/v1/",
18 "auth": {
19  "oauth2": {
20   "scopes": {
21    "https://www.googleapis.com/auth/latitude": {
22     "description": "Manage your current location and location history"
23    }
24   }
25  }
26 },
27 "features": [
28  "dataWrapper"
29 ],
30 "schemas": {
31  "LatitudeCurrentlocationResourceJson": {
32   "$ref": "Location"
33  },
34  "Location": {
35   "id": "Location",
36   "type": "object",
37   "properties": {
38    "accuracy": {
39     "type": "any"
40    },
41    "activityId": {
42     "type": "any"
43    },
44    "altitude": {
45     "type": "any"
46    },
47    "altitudeAccuracy": {
48     "type": "any"
49    },
50    "heading": {
51     "type": "any"
52    },
53    "kind": {
54     "type": "string",
55     "default": "latitude#location"
56    },
57    "latitude": {
58     "type": "any"
59    },
60    "longitude": {
61     "type": "any"
62    },
63    "placeid": {
64     "type": "any"
65    },
66    "speed": {
67     "type": "any"
68    },
69    "timestampMs": {
70     "type": "any"
71    }
72   }
73  },
74  "LocationFeed": {
75   "id": "LocationFeed",
76   "type": "object",
77   "properties": {
78    "items": {
79     "type": "array",
80     "items": {
81      "$ref": "Location"
82     }
83    },
84    "kind": {
85     "type": "string",
86     "default": "latitude#locationFeed"
87    }
88   }
89  }
90 },
91 "resources": {
92  "currentLocation": {
93   "methods": {
94    "delete": {
95     "id": "latitude.currentLocation.delete",
96     "path": "currentLocation",
97     "httpMethod": "DELETE",
98     "description": "Deletes the authenticated user's current location.",
99     "scopes": [
100      "https://www.googleapis.com/auth/latitude"
101     ]
102    },
103    "get": {
104     "id": "latitude.currentLocation.get",
105     "path": "currentLocation",
106     "httpMethod": "GET",
107     "description": "Returns the authenticated user's current location.",
108     "parameters": {
109      "granularity": {
110       "type": "string",
111       "description": "Granularity of the requested location.",
112       "location": "query"
113      }
114     },
115     "response": {
116      "$ref": "LatitudeCurrentlocationResourceJson"
117     },
118     "scopes": [
119      "https://www.googleapis.com/auth/latitude"
120     ]
121    },
122    "insert": {
123     "id": "latitude.currentLocation.insert",
124     "path": "currentLocation",
125     "httpMethod": "POST",
126     "description": "Updates or creates the user's current location.",
127     "request": {
128      "$ref": "LatitudeCurrentlocationResourceJson"
129     },
130     "response": {
131      "$ref": "LatitudeCurrentlocationResourceJson"
132     },
133     "scopes": [
134      "https://www.googleapis.com/auth/latitude"
135     ]
136    }
137   }
138  },
139  "location": {
140   "methods": {
141    "delete": {
142     "id": "latitude.location.delete",
143     "path": "location/{locationId}",
144     "httpMethod": "DELETE",
145     "description": "Deletes a location from the user's location history.",
146     "parameters": {
147      "locationId": {
148       "type": "string",
149       "description": "Timestamp of the location to delete (ms since epoch).",
150       "required": true,
151       "location": "path"
152      }
153     },
154     "parameterOrder": [
155      "locationId"
156     ],
157     "scopes": [
158      "https://www.googleapis.com/auth/latitude"
159     ]
160    },
161    "get": {
162     "id": "latitude.location.get",
163     "path": "location/{locationId}",
164     "httpMethod": "GET",
165     "description": "Reads a location from the user's location history.",
166     "parameters": {
167      "granularity": {
168       "type": "string",
169       "description": "Granularity of the location to return.",
170       "location": "query"
171      },
172      "locationId": {
173       "type": "string",
174       "description": "Timestamp of the location to read (ms since epoch).",
175       "required": true,
176       "location": "path"
177      }
178     },
179     "parameterOrder": [
180      "locationId"
181     ],
182     "response": {
183      "$ref": "Location"
184     },
185     "scopes": [
186      "https://www.googleapis.com/auth/latitude"
187     ]
188    },
189    "insert": {
190     "id": "latitude.location.insert",
191     "path": "location",
192     "httpMethod": "POST",
193     "description": "Inserts or updates a location in the user's location history.",
194     "request": {
195      "$ref": "Location"
196     },
197     "response": {
198      "$ref": "Location"
199     },
200     "scopes": [
201      "https://www.googleapis.com/auth/latitude"
202     ]
203    },
204    "list": {
205     "id": "latitude.location.list",
206     "path": "location",
207     "httpMethod": "GET",
208     "description": "Lists the user's location history.",
209     "parameters": {
210      "granularity": {
211       "type": "string",
212       "description": "Granularity of the requested locations.",
213       "location": "query"
214      },
215      "max-results": {
216       "type": "string",
217       "description": "Maximum number of locations to return.",
218       "location": "query"
219      },
220      "max-time": {
221       "type": "string",
222       "description": "Maximum timestamp of locations to return (ms since epoch).",
223       "location": "query"
224      },
225      "min-time": {
226       "type": "string",
227       "description": "Minimum timestamp of locations to return (ms since epoch).",
228       "location": "query"
229      }
230     },
231     "response": {
232      "$ref": "LocationFeed"
233     },
234     "scopes": [
235      "https://www.googleapis.com/auth/latitude"
236     ]
237    }
238   }
239  }
240 }
241}
242