Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Using georoute with zipcodes

    Hi all,

    I'm trying to generate driving distance between a variable with zip codes only and a variable with 5 different addresses. It looks like traveltime3 is no longer supported so I'm trying to see if there's a way to use georoute to accomplish this. I have a HERE api ID and code, and entered the following: (I changed the xy coordinate numbers but kept the - sign).

    georoute, hereid(_mine_) herecode(mine) startxy(40.21,-95.75) endxy(40.321, -94.232)

    And I get the following error:
    "option -95.75 not allowed"
    r(198)

    Does anyone know why I'm getting that error? I tried searching for the error code and command but can't find anything useful.
    Thanks in advance.


  • #2
    Welcome to Statalist.

    The output of help georoute suggests that for the arguments to the startxy() and endxy() options to be numbers rather than variable names, the "immediate" form of the command should be used, so try again using the command georoutei rather than georoute.

    Comment

    Working...
    X