Announcement

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

  • osrmprepare not accepting osm.pbf map

    I am trying to use the osrmtime command in order to calculate travel time for a large dataset of students (over 1,000,000 thus making APIs involving payment out of the question). I have followed the directions in this article https://www.uni-regensburg.de/wirtsc...per_online.pdf

    However, I have run into a strange problem with the osrmprepare command that must be run prior to the osrmtime command. I have downloaded an osm map from Geofabrik (I tried it in both the osm.pbf and the bz2 format and neither has worked). I have verified that all data is in the correct location. However, when I run the osrmprepare command I get an error saying that the map is in the wrong format.

    Code:
    osrmprepare, mapfile(¨C:/mymaps/tennessee-latest.osm.pbf¨) osrmdir(¨ C:/osrm/¨) diskspace(5000) profile(car)
    I get the following error

    Code:
    OSRM is only capable to parse .osm (XML) formatted data and pbf or bzip2 compressed files, please use an appropriate file ending!
    
    r(198);
    Anyone know what I am missing? I haven´t seen anything posted on this topic in a couple of years. Is this code still working? Is there an alternative open source mapping/ routing option with Stata?

    Thank you in advance for any help!

  • #2
    got stuck at the same point, yesterday
    Thank you for reading (and some reply)
    Using Stata 16.1
    Extractions (-dataex-) of the data I'm working with is impossible, sorry!

    Comment


    • #3
      OK, in my case just a typo in the mapfile directory
      Thank you for reading (and some reply)
      Using Stata 16.1
      Extractions (-dataex-) of the data I'm working with is impossible, sorry!

      Comment

      Working...
      X