Learn R Programming

⚠️There's a newer version (0.5.4) of this package.Take me there.

mapsapi (version 0.1.0)

'sf'-Compatible Interface to 'Google Maps' APIs

Description

Interface to the 'Google Maps' APIs: (1) routing directions based on the 'Directions API', returned as 'sf' objects, either as single feature per alternative route, or a single feature per segment per alternative route, (2) travel distance or time matrices based on the 'Distance Matrix API'.

Copy Link

Version

Install

install.packages('mapsapi')

Monthly Downloads

455

Version

0.1.0

License

MIT + file LICENSE

Maintainer

Michael Dorman

Last Published

September 27th, 2017

Functions in mapsapi (0.1.0)

google_matrix

Get distance matrix from the Google Maps Distance Matrix API
response_directions

Sample response from Google Maps Directions API
extract_matrix

Extract distance or duration *matrix* from a Google Maps Distance Matrix API response
extract_routes

Extract *routes* from Google Maps Directions API response
extract_segments

Extract *route segments* from a Google Maps Directions API response
google_directions

Get directions from the Google Maps Directions API
response_matrix

Sample response from Google Maps Distance Matrix API