geocode: Geocode a place name or an address

View source: R/geocode.R

geocodeR Documentation

Geocode a place name or an address

Description

Geocode a place name or an address

Usage

geocode(
  string = "helsinki",
  hits = 1,
  host = "https://api.digitransit.fi/geocoding"
)

Arguments

string

plane name or an address

hits

Number of hits returned

host

Define host, for instance http://localhost:3100 if running docker container locally

Value

Data frame with latitude and longitude of the place

Examples

geocode(string = "Eduskuntatalo", hits = 1)

rOpenGov/digitransit documentation built on April 11, 2024, 6:58 p.m.