download_track: download_track

Description Usage Arguments Details Value Examples

Description

Downloads two sequances of images from Google Streetview between given coordinates, one in each direction and also can create summary maps.

Usage

1
2
download_track(start, end, track_code, folder = getwd(), pace = 20,
  fineness = 5, map = 1, adjust = TRUE)

Arguments

start

vector c(lat,lng)

end

vector c(lat,lng)

track_code

A number identifying the track to be downloaded, its passed to filenames of images

folder

Defaultly it is current working directory

pace

Number of metres between coordinates used to download images

fineness

number of images with adjusted heading before curve

map

(map == 0) => downloads only images without map; (map == 1) => downloads images and map of their locations; (map == 2) => downloads only summary map

adjust

If TRUE script tryes to adjust headings in curves

pace

metres between images

Details

This function first finds the route between two corrdinates using Google Directions api, then it calculates positions of images to be downloaded alongside the route so they are in predefined spacing. afterwards it downloads the images and creates summary map. In the map the bigger red marks with letters stand for calculated positions of images and the smaller blue marks, that are connected with green line to the red marks, are positions of the actualy downloaded images. @

Value

Returnes vector of deviances between calculated and real location of downloaded images. Values bellow 70 are considered a sufficient match.

Examples

1
2
3
download_track(c(50.080266, 14.447034), c(50.081416, 14.447790), 1)
download_track(c(50.064281, 14.509821), c(50.065542, 14.507479), 2, pace = 30, map = 2)
download_track(c(50.065476, 14.512228), c(50.065001, 14.514193), 3, adjust = TRUE, fineness = 7)

JiriStipl/strviewr documentation built on May 17, 2019, 2:49 p.m.