Skip to content
This repository has been archived by the owner. It is now read-only.
Easy access to the open parts of the car2go OpenAPI
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
.gitignore
LICENSE
README.md
pom.xml

README.md

c2g Lib

The c2g lib provides easy access to the open parts of the car2go OpenAPI. It allows you to access Locations, Vehicles, Home Areas, Parking Spots and Gas Stations without digging too deep in the API (and its inconsistencies).

Usage

First you need to get a consumer key for the OpenAPI. Instructions can be found at https://code.google.com/p/car2go/wiki/oauth#Registration_as_consumer

C2GAPIClient client = new C2GAPIClient("car2go");

List<Location> locations = client.getLocations();
List<Area> areas = client.getOperatingAreas("Hamburg");
List<Vehicle> vehicles = client.getVehicles("Austin");
List<GasStation> gasstations = client.getGasStations("Hamburg");
List<ParkingSpot> parkingspots = client.getParkingSpots("Hamburg");

Disclaimer

This product uses the car2go API but is not endorsed or certified by car2go. Please have a look at https://www.car2go.com/api/tou.htm before using this library.

You can’t perform that action at this time.