from_words {threewords}R Documentation

Resolve Three Identifying Words to a Position

Description

from_words takes a word cluster used by what3words and converts them back into latitude/longitude pairs.

Usage

from_words(key, words, ...)

Arguments

key

an API key obtained from what3words.

words

either a vector of words, for 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

## Not run: 
# Ask for a single lat/long pair from the what3words API (note: this requires an API key.
# Don't actually use 'ANAPIKEY'.)
results <- from_words(key = "ANAPIKEY", words = c("turnip","basil","fruit"))

## End(Not run)

[Package threewords version 0.1.0 Index]