rmapzen-package: rmapzen: A client application for the 'Mapzen' API.

rmapzen-packageR Documentation

rmapzen: A client application for the 'Mapzen' API.

Description

The rmapzen package provides interfaces to the Search <https://github.com/pelias/documentation/>, Isochrone <https://valhalla.readthedocs.io/en/latest/>, and Vector Tile <https://tilezen.readthedocs.io/en/latest/> services from 'Mapzen', via the following functions:

Search

All functionality described in <https://github.com/pelias/documentation/> are supported:

  • mz_search

  • mz_reverse_geocode

  • mz_autocomplete

  • mz_place

  • mz_structured_search

Additionally, mz_geocode is useful for a common application of search, that of just obtaining latitude and longitude for a given address or place.

Isochrone

Isochrones are the areas reachable from a given location within a specified period of time. Mapzen's Isochrone service can calculate isochrones for driving, walking, cycling, or multimodal forms of transport:

  • mz_isochrone

  • mz_costing: for constructing "costing models" that describe method of transport along with speed and other options relevant to the calculation of the isochrone

  • mz_costing_options: for selecting specific options when constructing a costing model

Vector Tiles

  • mz_vector_tiles: Request one or more adjacent tiles. Multiple map tiles will be stitched together before being returned as a single object.

  • mz_tile_coordinates: When using mz_vector_tiles, you must specify the geographic area for which you want tile data. One way to do so is using the x, y, z tile naming system (see <https://wiki.openstreetmap.org/wiki/Slippy_map_tilenames>).

  • mz_rect: Alternatively, you can specify the lower left and top-right points of a bounding box, which will automatically be converted to tile-coordinates when you use mz_vector_tiles

  • mz_bbox: This is a generic function which will return the bounding box of any Mapzen object. In this way, you can request vector tiles for a region defined as the bounding box of an existing object.

Data types and conversion

Objects returned by rmapzen can be converted to simple features (sf) via the generic function as_sf. Search and Isochrone objects can additionally be converted to ordinary data.frames via as.data.frame.

Author(s)

Maintainer: Tarak Shah tarak.shah@gmail.com

Other contributors:

  • Daniel Possenriede [contributor]

See Also

  • <https://tarakc02.github.io/rmapzen/> contains detailed examples

  • <https://www.mapzen.com/documentation/> 'Mapzen' documentation


tarakc02/rmapzen documentation built on Oct. 19, 2023, 7:32 p.m.