Skip to content

Commit

Permalink
Readme update
Browse files Browse the repository at this point in the history
  • Loading branch information
marcusyoung committed Mar 31, 2019
1 parent 1c2286f commit e6b2873
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 8 deletions.
6 changes: 3 additions & 3 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
Package: otpr
Title: An R Wrapper for the OpenTripPlanner REST API
Title: An R Wrapper for the 'OpenTripPlanner' REST API
Version: 0.1.0
Authors@R: c(
person("Marcus", "Young", email = "M.A.Young@soton.ac.uk", role = c("aut", "cre"))
)
Description: An R wrapper for the OpenTripPlanner (OTP) <http://www.opentripplanner.org/>
REST API. Queries are submitted to the relevant OTP API resource, the response
Description: A wrapper for the 'OpenTripPlanner' <http://www.opentripplanner.org/>
REST API. Queries are submitted to the relevant 'OpenTripPlanner' API resource, the response
is parsed and useful R objects are returned.
License: MIT + file LICENSE
Encoding: UTF-8
Expand Down
21 changes: 18 additions & 3 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,13 @@ knitr::opts_chunk$set(

# otpr


<!-- badges: start -->
[![CRAN status](https://www.r-pkg.org/badges/version/otpr)](https://cran.r-project.org/package=otpr)
[![Build Status](https://travis-ci.org/marcusyoung/otpr.svg?branch=master)](https://travis-ci.org/marcusyoung/otpr)
[![lifecycle](https://img.shields.io/badge/lifecycle-maturing-blue.svg)](https://www.tidyverse.org/lifecycle/#maturing)

<!-- badges: end -->

## Overview

Expand All @@ -28,8 +34,11 @@ This package will be useful to researchers and transport planners who want to us

## Installation

```{r, eval = FALSE}
# To install the development version from GitHub:
``` r
# Install from CRAN
install.packages("otpr")

# Or the development version from GitHub:
# install.packages("devtools")
devtools::install_github("marcusyoung/otpr")
```
Expand Down Expand Up @@ -80,7 +89,7 @@ otp_get_distance(

### Time between two points

The get the trip duration in minutes between an origin and destination use `otp_get_times()`.
To get the trip duration in minutes between an origin and destination use `otp_get_times()`.
You can specify the required mode: TRANSIT (all available transit modes), BUS, RAIL, CAR,
BICYCLE, and WALK are valid. All the public transit modes automatically allow WALK.
There is also the option to combine TRANSIT with BICYCLE.
Expand Down Expand Up @@ -162,3 +171,9 @@ of using **otpr** functions, and helps you get the most from the package, for ex
an origin-destination matrix.

For more guidance on how **otpr**, in conjunction with OTP, can be used to generate data for input into models, read [An automated framework to derive model variables from open transport data using R, PostgreSQL and OpenTripPlanner](https://eprints.soton.ac.uk/389728/).

## Getting help

* Please [report any issues or bugs](https://github.com/marcusyoung/otpr/issues).
* Get citation information for **otpr** using: `citation(package = 'otpr')`.

21 changes: 19 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,15 @@

# otpr

<!-- badges: start -->

[![CRAN
status](https://www.r-pkg.org/badges/version/otpr)](https://cran.r-project.org/package=otpr)
[![Build
Status](https://travis-ci.org/marcusyoung/otpr.svg?branch=master)](https://travis-ci.org/marcusyoung/otpr)
[![lifecycle](https://img.shields.io/badge/lifecycle-maturing-blue.svg)](https://www.tidyverse.org/lifecycle/#maturing)

<!-- badges: end -->

## Overview

Expand All @@ -21,7 +28,10 @@ derive variables for use in transportation models.
## Installation

``` r
# To install the development version from GitHub:
# Install from CRAN
install.packages("otpr")

# Or the development version from GitHub:
# install.packages("devtools")
devtools::install_github("marcusyoung/otpr")
```
Expand Down Expand Up @@ -99,7 +109,7 @@ otp_get_times(
#> [1] "OK"
#>
#> $duration
#> [1] 4084
#> [1] 5563


# By default the date and time of travel is taken as the current system date and
Expand Down Expand Up @@ -192,3 +202,10 @@ For more guidance on how **otpr**, in conjunction with OTP, can be used
to generate data for input into models, read [An automated framework to
derive model variables from open transport data using R, PostgreSQL and
OpenTripPlanner](https://eprints.soton.ac.uk/389728/).

## Getting help

- Please [report any issues or
bugs](https://github.com/marcusyoung/otpr/issues).
- Get citation information for **otpr** using: `citation(package =
'otpr')`.

0 comments on commit e6b2873

Please sign in to comment.