Skip to content

Only mode "driving" works. transit / walking / bicycling have replacement error. #53

@vince-p

Description

@vince-p

Editing this to describe the error better:

When i set the mode to "driving" the gmapsdistance function works fine, but setting any other mode results in an error.

Here is the code I am running:
gmapsdistance( key=<MYKEY>, origin= "St+Peters,+NSW", destination = "Glebe,+NSW", mode="driving", shape = "wide", avoid = "", departure = 1557086400, traffic_model = "pessimistic" )

That works perfectly fine.
But when I change the mode to "transit" or "walking" or "bicycling" then I get the following error:

Error in data$Time[i] <- as(rowXML[[duration_key]][1L]$value[1L]$text, : replacement has length zero

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions