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