# 1Map Android

## Generating API client

The API client code needs to be generated with swagger-codegen. 
Maven is then used to compile it into a jar file and install it into your local maven repository.
The main project then references it from your local maven repo.

Prerequisites:
- swagger-codegen
- maven

Use the following command to generate the client SDK:
```
swagger-codegen generate -i https://www.1map.co.za/onemapapi/api/v1.json -l java --library=okhttp-gson -D hideGenerationTimestamp=true -o out
```

Compile and install the SDK:
```
cd out
mvn install
```

Now rebuild your main project.
