Skip to content

Commit

Permalink
formatted readme
Browse files Browse the repository at this point in the history
  • Loading branch information
SymbolixAU committed Aug 17, 2018
1 parent d67224d commit a1a0dc0
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ A **fast** and light-weight implementation of [Google's polyline encoding algori

Version 0.6.1 is on CRAN and can be installed through

```
```r
install.packages("googlePolylines")
```

The development version can be installed from github with:

```
```r
# install.packages("devtools")
devtools::install_github("SymbolixAU/googlePolylines")
```
Expand All @@ -51,7 +51,7 @@ Supported `sf` types

### `encode`

```
```r
library(googlePolylines)
library(sf)

Expand Down Expand Up @@ -122,7 +122,7 @@ encode(df)

### Polyline to well-known text

```
```r

enc <- encode(sf)
wkt <- polyline_wkt(enc)
Expand All @@ -137,7 +137,7 @@ wkt

### Well-known text to polyline

```
```r
enc2 <- wkt_polyline(wkt)
```

Expand All @@ -147,7 +147,7 @@ enc2 <- wkt_polyline(wkt)
Encoding coordinates into polylines reduces the size of objects and can increase the speed in plotting Google Maps


```
```r
library(sf)
nc <- st_read(system.file("shape/nc.shp", package="sf"))

Expand All @@ -159,7 +159,7 @@ vapply(mget(c('nc', 'encoded', 'encodedLite') ), function(x) { format(object.siz
# "132.2 Kb" "83.3 Kb" "50.5 Kb"
```

```
```r
library(leaflet)
library(microbenchmark)
library(sf)
Expand Down

0 comments on commit a1a0dc0

Please sign in to comment.