Skip to content
Prev 326246 / 398502 Next

passing of longitude and lattitude arguments to read URL in Google Maps and extract routes

On Jul 2, 2013, at 1:59 AM, Franckx Laurent wrote:

            
Yes. That seems likely. R would not interpret a text literal. I don't understand why you are not using the ordinary text handling function 'paste0'.

?paste0
long_or <- 4.384575
lat_des <-  51.13156
long_des <- 4.387118
[1] "origin=51.13854,4.384575&destination=51.13156,4.387118"


(Also tested on Mac with R 3.0.0 RC using Google JSON Data Interpreter for R, Version: 1.0.01.)

-- 
David.