graphhopper / map-matching

The map matching functionality is now located in the main repository https://github.com/graphhopper/graphhopper#map-matching
https://www.graphhopper.com/open-source/
Apache License 2.0
785 stars 273 forks source link

Timedate parse issue #9

Closed ustroetz closed 9 years ago

ustroetz commented 9 years ago

I tried the following file as a test: https://www.openstreetmap.org/user/epe/traces/776904

The error I got is the following:

2015-02-12 14:59:45,897 [main] ERROR com.graphhopper.matching.MapMatchingMain - Problem with file 776904.gpx Error: java.text.ParseException: Unparseable date: "2010-07-30T17:5236"

What is the expected datetime format? Can we add this to the docs?

karussell commented 9 years ago

Looks like a problem with the data what is 17:5236? There are several formats possible:

See GPXFile and #3

And timezones (Z) can be in the format '+01:00'

ustroetz commented 9 years ago

Okay. I just picked a random sample from OSM traces. Maybe we can add the datetime format possibilities to the README.

karussell commented 9 years ago

Yes, sure. Even better we should support as many as possible ;)