Class OSMReaderUtility

java.lang.Object
com.graphhopper.reader.osm.OSMReaderUtility

public class OSMReaderUtility extends Object
This class currently parses the duration tag only.
Author:
ratrun
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static long
    Parser according to http://wiki.openstreetmap.org/wiki/Key:duration The value consists of a string ala 'hh:mm', format for hours and minutes 'mm', 'hh:mm' or 'hh:mm:ss', or alternatively ISO_8601 duration

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • OSMReaderUtility

      public OSMReaderUtility()
  • Method Details

    • parseDuration

      public static long parseDuration(String str) throws IllegalArgumentException
      Parser according to http://wiki.openstreetmap.org/wiki/Key:duration The value consists of a string ala 'hh:mm', format for hours and minutes 'mm', 'hh:mm' or 'hh:mm:ss', or alternatively ISO_8601 duration

      Returns:
      duration value in seconds
      Throws:
      IllegalArgumentException