https://github.com/sckott/rwikispeedia
R interface to Wikispeedia
https://github.com/sckott/rwikispeedia
Last synced: over 1 year ago
JSON representation
R interface to Wikispeedia
- Host: GitHub
- URL: https://github.com/sckott/rwikispeedia
- Owner: sckott
- Created: 2012-02-03T15:35:22.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2013-12-13T20:11:29.000Z (over 12 years ago)
- Last Synced: 2025-03-23T23:36:12.114Z (over 1 year ago)
- Language: R
- Homepage:
- Size: 129 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
rwikispeedia
============
`rwikispeedia` is a wrapper to the Wikispeddia API. Wikispeedia is "the Open Speed Limit Database". They are "gathering GPS-coordinates of every speed-limit sign on earth".
* Their homepage is [here](http://www.wikispeedia.org/).
* Find them on Wikipeedia [here](http://en.wikipedia.org/wiki/Wikispeedia).
* The short description of their API is [here](http://www.wikispeedia.org/faq.txt).
This is an example API call:
[http://www.wikispeedia.org/a/marks_bb2.php?name=all&nelat=35.198676&swlat=35.194676&nelng=-89.56558&swlng=-89.56958](http://www.wikispeedia.org/a/marks_bb2.php?name=all&nelat=35.198676&swlat=35.194676&nelng=-89.56558&swlng=-89.56958)
Install dependencies
```coffee
install.packages(c("RCurl", "XML", "plyr"))
```
Install rwikispeedia
```coffee
install.packages("devtools")
library(devtools)
devtools::install_github("sckott/rwikispeedia")
library(rwikispeedia)
```
Get some data
```coffee
getsigns(nelat=35.198676, swlat=35.194676, nelng=-89.56558, swlng=-89.56958)
```
```coffee
label lat lng mph kph cog alt_meters
1 35.19800509 -89.56761047 45 0 180 0.00
2 prasad 35.19800509 -89.56761047 45 0 45 0.00
3 prasad 35.19800509 -89.56761047 45 0 45 0.00
4 prasad 35.19800509 -89.56761047 0 0 45 0.00
5 durga prasad 35.19800509 -89.56761047 90 0 45 0.00
6 35.19786153 -89.56760511 45 0 180 0.00
7 35.19636122 -89.56752062 60 0 180 0.00
```