Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
updated version and caching variable
  • Loading branch information
janvde authored Feb 19, 2018
1 parent 3dc7b52 commit 378a077
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ allprojects {
Add the dependency
```
dependencies {
compile 'com.github.roadmaptravel:Rome2RioAndroid:0.1.4'
compile 'com.github.roadmaptravel:Rome2RioAndroid:0.1.6'
}
```
Expand All @@ -29,7 +29,8 @@ This library makes use of RxAndroid for its calls.

```java
String key = "{YOUR API KEY}"
Rome2RioService service = new Rome2RioApiClient(this, key).getService();
int cacheDuration = 60; //60 seconds caching duration. Default is 30 secs.
Rome2RioService service = new Rome2RioApiClient(this, key, cacheDuration).getService();

// for more parameters, check the documentation of
// the SearchRequest on https://www.rome2rio.com/documentation/1-4/search/
Expand Down Expand Up @@ -60,6 +61,8 @@ service.getSearchResponseRx(searchRequest.toUrl())
}
});
```


## License

Copyright 2017 Roadmap
Expand Down

0 comments on commit 378a077

Please sign in to comment.