|
locations_v2_1
car2go API Documentation - Get all locations
Get all locationsProvides a list of all locations car2go is operating for like ulm or austin in either XML or JSON format.
Parameters
Request ExamplesGET http://www.car2go.com/api/v2.1/locations?oauth_consumer_key=consumerkey GET http://www.car2go.com/api/v2.1/locations?oauth_consumer_key=consumerkey&format=json ResponseEach location consists of:
mapSection - map informations: Response ExamplesA XML response example: <?xml version="1.0" encoding="UTF-8" standalone="yes"?><locationResponse xmlns="http://www.car2go.com/openapi/xmlschema"><returnValue><code>0</code><description>Operation successful.</description></returnValue><location><locationId>1</locationId><locationName>Ulm</locationName><timezone>Europe/Berlin</timezone><countryCode>DE</countryCode><defaultLanguage>de</defaultLanguage><mapSection><center><latitude>48.398917</latitude><longitude>9.99139</longitude></center><upperLeft><latitude>48.4383</latitude><longitude>9.9146</longitude></upperLeft><lowerRight><latitude>48.3446</latitude><longitude>10.0459</longitude></lowerRight></mapSection></location></locationResponse> A JSON response example:
{"location":[
{"countryCode":"DE",
"defaultLanguage":"de",
"locationId":1,
"locationName":"Ulm",
"mapSection":{
"center":{
"latitude":48.398917,
"longitude":9.99139
},"lowerRight":{
"latitude":48.3446,
"longitude":10.0459
},"upperLeft":{
"latitude":48.4383,
"longitude":9.9146
}
},"timezone":"Europe/Berlin"
}],
"returnValue":{
"code":0,
"description":"Operation successful."
}}
Return CodesThe following return codes may occur:
(c) 2010 car2go GmbH. All rights reserved. Generated 03.02.12 08:59 | ||||||||||||||||||||||||||||
► Sign in to add a comment