from_position: Resolve a Position to Three Identifying Words

Description Usage Arguments Value See Also Examples

View source: R/position.R

Description

from_position takes latitude/longitude pair (or sequence of them) and resolves them to a word cluster used by what3words.

Usage

1
from_position(key, positions, ...)

Arguments

key

an API key obtained from what3words.

positions

either a vector containing a single latitude/longitude pair, or a list of vectors for vectorised operations.

...

further arguments to pass to httr's GET.

Value

A list containing the words, positions and language of those words.

See Also

from_position for the opposite operation.

Examples

1
2
3
4
5
6
## Not run: 
# Ask for a single set of words from the what3words API (note: this requires an API key.
# Don't actually use 'ANAPIKEY'.)
results <- from_position(key = "ANAPIKEY", positions = c(6.385336,-36.293769))

## End(Not run)


threewords documentation built on May 19, 2017, 8:04 a.m.
Search within the threewords package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.