Package com.graphhopper.reader.osm
Class OSMReaderUtility
java.lang.Object
com.graphhopper.reader.osm.OSMReaderUtility
This class currently parses the duration tag only.
- Author:
- ratrun
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic long
parseDuration
(String str) 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
-
Constructor Details
-
OSMReaderUtility
public OSMReaderUtility()
-
-
Method Details
-
parseDuration
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
-