Client for 'Mapzen' and Related Map APIs

Provides an interface to 'Mapzen'-based APIs (including geocode.earth, Nextzen, and NYC GeoSearch) for geographic search and geocoding, isochrone calculation, and vector data to draw map tiles. See < https://mapzen.com/documentation/> for more information. The original Mapzen has gone out of business, but 'rmapzen' can be set up to work with any provider who implements the Mapzen API.


Introduction

NOTE: Mapzen has shut down. However, the rmapzen package can be used with other PELIAS providers. The specific hosting service can be set up with mz_set_host. For known providers, rmapzen includes pre-configured API set up functions:

  • mz_set_search_host_geocode.earth to set up geocode.earth as a search (includes geocoding, autocomplete, etc) provider
  • mz_set_search_host_nyc_geosearch() to set up GeoSearch from NYC Planning Labs (currently in beta) as a search provider.
  • mz_set_tile_host_nextzen to set up Nextzen as a vector tile provider

If you know of an API that uses PELIAS that is not included here, let me know.


rmapzen is a client for the Mapzen API. For an introduction, detailed examples, and installation instructions, see: https://tarakc02.github.io/rmapzen/. The package is available on CRAN, to install:

install.packages("rmapzen")

For more information about the Mapzen API, see https://mapzen.com/documentation/.

News

rmapzen 0.4.1

  • updated maintainer email address

rmapzen 0.4.0

  • added mz_geocode_structured for geocoding structured address data
  • added additional ways to specify tile coordinates for vector tiles. Vector tile coordinates can now be specified using:
    • the x, y, z tile coordinate system,
    • a lat/lon bounding box with a zoom level,
    • a bounding box with height/width in pixels, and
    • a point location plus a zoom level
  • added additional methods for mz_bbox

rmapzen 0.3.5

  • Updated as_sf and as_sp methods for vector tile data, previous versions used functions that are no longer exported from the sf package (as of version 0.6-2)

rmapzen 0.3.4

  • Made service host configurable, since Mapzen is no more :(. See ?mz_set_host for how to set up a specific API provider. Thanks to @dpprdan for the initial update.

rmapzen 0.3.3

  • Added additional documentation and updated DESCRIPTION

rmapzen 0.3.2

  • Added ability to convert to sf
  • All objects returned from the Mapzen API now include the header from the response as an attribute called "header"
  • conversion functions now error on empty inputs (e.g. a search with 0 results)
  • request functions are no longer rate-limited, because Mapzen's service has been updated and only has monthly (not per-second or per-minute) limits

rmapzen 0.3.1

  • Added support for structured geocoding
  • Simple print methods for vector tiles and individual vector tile layers

rmapzen 0.3.0.9007

  • new function mz_rect for directly creating a bounding box
  • mz_vector_tiles gained a ... argument to pass height/width/zoom specifications to as.mz_tile_coordinates.

rmapzen 0.3.0.9006

  • Included tracking of vector tile service to mz_check_usage()
  • Added mz_bbox() method for vector tiles
  • Bugfix on converting vector tiles to Spatial* - re-calculate IDs (to avoid issue where features with the same ID on separate tiles got messed up when stitching tiles) and merge polygons (so polygons spanning multiple tiles don't appear as multiple polygons when tiles are stitched).
  • Added example data from each of the three services: oakland_public (mz_search), marina_walks (mz_isochrone), ca_tiles (mz_vector_tiles)

rmapzen 0.3.0.9005

  • Added a NEWS.md file to track changes to the package.
  • Added support for vector tile service, see ?mz_vector_tiles

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("rmapzen")

0.4.1 by Tarak Shah, 9 months ago


https://tarakc02.github.io/rmapzen/


Report a bug at https://github.com/tarakc02/rmapzen/issues


Browse source code at https://github.com/cran/rmapzen


Authors: Tarak Shah [aut, cre] , Daniel Possenriede [ctb]


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports tibble, httr, jsonlite, maps, dplyr, assertthat, geojsonio, tidyr, purrr, sp, rgdal, digest, maptools, sf

Suggests testthat, covr, knitr, rmarkdown, rlang


See at CRAN