'sf'-Compatible Interface to 'Google Maps' APIs
Overview
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; (3) geocoded locations based on the 'Geocode' API, returned as 'sf' objects, either points or bounds; (4) map images using the 'Maps Static' API, returned as 'stars' objects.
- New options in 'mp_map' (by Rodrigo Vega)
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK14 OK2026-03-10
Documentation
- Help pages
- 15
- Examples that run
- 93%13 run in a plain check · 1 never run
- Exported functions with examples
- 100%
- Documented parameters
- 93%
- Return-value docs
- 100%
- Help pages citing references
- 27%
Downloads
Repository
- PRs merged (all time)
- 100%
- Median days to close, 50 most recently updated closed issues
- 2
- Median days to close, 50 most recently updated closed PRs
- 2
Stars over time
Forks over time
Issues over time
PRs over time
5 development-tooling and community-health practices detected across 3 families in the upstream repository
Checks run against github.com/michaeldorman/mapsapi on 2026-10-18.
Dependencies
Installing mapsapi adds 25 packages (19 with compiled code, 25 MB of source tarballs). Heaviest: sf 9.3 MB, stars 3.8 MB, s2 2.8 MB.
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- 0.5.4Latest
- RR 4.3.0 released · 2023-04-21
- RR 4.2.0 released · 2022-04-22
- 0.5.32022-01-13 · diff ↗
- 0.5.02021-09-06 · diff ↗
- 0.4.92021-06-13 · diff ↗
- RR 4.1.0 released · 2021-05-18
- 0.4.82020-12-17 · diff ↗
- 0.4.72020-09-19 · diff ↗
- 0.4.62020-06-15 · diff ↗
- RR 4.0.0 released · 2020-04-24
- 0.4.5
- 0.4.22019-09-07 · diff ↗
Show 11 earlier eventsHide 11 earlier events
- 0.4.12019-06-14 · diff ↗
- RR 3.6.0 released · 2019-04-26
- 0.4.02019-04-06 · diff ↗
- 0.3.92019-01-19 · diff ↗
- 0.3.72018-07-23 · diff ↗
- RR 3.5.0 released · 2018-04-23
- 0.3.52018-03-12 · diff ↗
- 0.3.02018-01-11 · diff ↗
- 0.2.02017-11-02 · diff ↗ ·
removed 5 exports
extract_matrix, extract_routes, extract_segments, google_directions, google_matrixadded 8 exports
mp_directions, mp_geocode, mp_get_bounds, mp_get_matrix, mp_get_points, mp_get_routes, mp_get_segments, mp_matrix - 0.1.02017-09-27
- RR 3.4.0 released · 2017-04-21
Package metadata
- First published
- 2017-09-27
- Total releases
- 17 / 9 yrs
- License
- MIT + file LICENSE OSI
- Minimum R
- ≥ 4.1.0
- Bundled data
- 313 KB / 5 files
- Download size
- 1.4 MB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("mapsapi")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-21, which the citation names so these numbers can be found later. More on citing and the projects behind them.