Announcement

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

  • traveltime, traveltime3, geocode3

    Dear all,

    Its been about 2 years since i used 'geocode3' and 'traveltime3', and it appears they are no longer available.

    Since I already have a file with XY-coordinates, I tried to use 'traveltime' (which is similar to traveltime3) to get distance information but failed and was given the following information:


    traveltime, start_x(xkoord_startpunkt) start_y(ykoord_startpunkt) end_x(xkoord_mlpunkt) end_y(ykoord_mlpunkt) mode(1) km

    file
    http://maps.google.com/maps?f=d&outp...601733,674040&
    > dirflg= not found
    r(601);

    end of do-file



    This suggests that also 'traveltime' can no longer be used to get distance information.

    Any suggestions of how to get data on XY-coordinates and travel time?

    Thanks in advance!

    Simon

  • #2
    Hi,

    I'm new to Statlist and to Stata in general. I am working on a similar project and this project involves measuring the travel time (time of travel and distance in Km). I use the same as the previous poster and it also gave me the ff error report:

    traveltime, start_x(startong) start_y(startlat) end_x(endlong) end_y(endlat) mode(2) km

    file
    http://maps.google.com/maps?f=d&outp...08782768249512
    > ,121.011507&dirflg=r not found
    r(601);

    Any information what is the problem with my code if any?

    Comment


    • #3
      If you delete the text f=d&output=dragdir& from the URL you will see a result in Google Maps. Compare the two URLs below.Perhaps with this information someone can determine where traveltime.ado has to be edited so that it can retrieve results from Google Maps again.

      Comment


      • #4
        Dear all,
        as you probably noticed, the commands traveltime, traveltime3, and mqtime are obsolet for various reasons (licensing, API, etc.). We developed a new procedure that allows calculation of the travel time with Stata using latitude and longitude information. Please have a look at our paper in which we explain how the command 'osrmtime' can be installed and used.

        The paper
        'osrmtime: calculate travel time and distance with OpenStreetMap data using the Open Source Routing Machine (OSRM)'
        can be downloaded here:
        http://papers.ssrn.com/sol3/papers.c...act_id=2691551

        The Stata help-file, the ado-files and all the stuff that is needed can be found here:
        http://www.uni-regensburg.de/wirtsch...ung/index.html

        Comment


        • #5
          btw: it is easy to implement the osrmtime command on a Unix machine. You find an instruction how to build OSRMTIME on a Linux distribution here:
          http://www.uni-regensburg.de/wirtsch...ung/index.html

          or :


          # Installation of OSRMTIME for Users of Linux Distributions

          # Step 0: Install (copy) the ado- and help-files (osrmtime.ado, osrmprepare.ado, osrminterface.ado, osrmtime.sthlp) of the osrmtime command in Stata.

          # Step 1: Prepare your PC for the OSRM
          # Since the dependencies vary across Linux-Distributions, we suggest to look on the always up-to-date instructions online, see:
          # https://github.com/Project-OSRM/osrm.../Building-OSRM

          # For a Debian Jessie/Stretch Distribution, for example, you have to do the following:
          # (You probably have to adjust this part, see https://github.com/Project-OSRM/osrm.../Building-OSRM )
          sudo apt-get install git g++ cmake libboost-dev libboost-filesystem-dev libboost-thread-dev \
          libboost-system-dev libboost-regex-dev libstxxl-dev libxml2-dev libsparsehash-dev libbz2-dev \
          zlib1g-dev libzip-dev libgomp1 liblua5.1-0-dev \
          libluabind-dev pkg-config libgdal-dev libboost-program-options-dev libboost-iostreams-dev \
          libboost-test-dev libtbb-dev libexpat1-dev

          ## Step 2: Build OSRM to run on your PC
          wget https://github.com/Project-OSRM/osrm.../v5.3.0.tar.gz
          tar -xf v5.3.0.tar.gz
          cd osrm-backend-5.3.0
          mkdir -p build
          cd build
          cmake .. -DCMAKE_BUILD_TYPE=Release
          cmake --build .

          mkdir -p ~/osrm
          cp -r osrm-datastore osrm-extract osrm-prepare osrm-routed ../profiles/* ~/osrm/
          cp -r osrm-datastore osrm-extract osrm-contract osrm-routed ../profiles/* ~/osrm/

          ## clean up
          cd ../..
          rm -r build

          Comment


          • #6
            I already tried everything you guys said, but I get always an error that I posted here: https://www.statalist.org/forums/for...eltime-geocode

            Please if you can help me in calculate traveltime by using lat/long coordinates that'd be great

            Comment


            • #7
              Hi Dalila Rib, I am not sure if you've already seen this - you can download all the requisite files and read the installation instructions on the GitHub page for the command -osrmtime- here: https://github.com/christophrust/osrmtime

              Comment


              • #8
                I only wonder if anyone has been able to successfully modify the traveltime.ado file to get the Google Maps API call to work.

                Comment

                Working...
                X