Hi
i have tried the java snipped Java snipped with success
with
Windows
map-matching-web-0.7.0-jar-with-dependencies
20160428_baden-wuerttemberg-latest.osm.pbf
Bike2WeightFlagEncoder encoder= new Bike2WeightFlagEncoder();
However, I get a lot of warnings like this:
…
2016-07-14 09:07:29,743 [main] WARN com.graphhopper.reader.osm.conditional.ConditionalTagsInspector - 27841603 - could not parse the conditional value:no @ (PH,SH) of tag:access:conditional. Exception:Unparseable date: “”
2016-07-14 09:07:31,476 [main] WARN com.graphhopper.reader.osm.conditional.ConditionalTagsInspector - 29981421 - could not parse the conditional value:no @ (air_traffic) of tag:access:conditional. Exception:Unparseable date: “air_traffic”
2016-07-14 09:07:38,554 [main] WARN com.graphhopper.reader.osm.conditional.ConditionalTagsInspector - 41748877 - could not parse the conditional value:no @ flooding of tag:access:conditional. Exception:Unparseable date: “flooding”
2016-07-14 09:07:38,564 [main] WARN com.graphhopper.reader.osm.conditional.ConditionalTagsInspector - 41779855 - could not parse the conditional value:no @ flooding of tag:access:conditional. Exception:Unparseable date: “flooding”
2016-07-14 09:07:46,764 [main] WARN com.graphhopper.reader.osm.conditional.ConditionalTagsInspector - 87255787 - could not parse the conditional value:no @ flooding of tag:access:conditional. Exception:Unparseable date: “flooding”
2016-07-14 09:07:46,765 [main] WARN com.graphhopper.reader.osm.conditional.ConditionalTagsInspector - 87255788 - could not parse the conditional value:no @ flooding of tag:access:conditional. Exception:Unparseable date: “flooding”
…
what am I doing wrong?
Another question:
Can I get a GPX track-string or file from MatchResult like in the Web without my own GPX generator (iterator over the resultset etc…)
If this is possible?
Can you help me and explain that for a silly?
Ok. I have found this
GPXFile gpxFile = new GPXFile(mr, null);
gpxFile.doExport("e:\\temp\\match.gpx");
How can i insert the “elevation” in the gpx MatchResult File?
The warnings are no problem and we’ll disable this in the next release to avoid confusion. The conditional tag warnings just say that some conditional tags are not supported yet.
The GPX track can be created via:
ghResponse.getInstructions().createGPX(trackName, time, includeElevation, withRoute, withTrack, withWayPoints);
…sure, but i have a pure Java Solution without the Web-Interface
// do the actual matching, get the GPX entries from a file or via stream
List<GPXEntry> inputGPXEntries = new GPXFile().doImport("E:\\MyWorkDir\\zGPS\\testGPX\\2016-04-30 1211__20160430_1211.gpx").getEntries();
MatchResult mr = mapMatching.doWork(inputGPXEntries);
GPXFile gpxFile = new GPXFile(mr, null);
gpxFile.doExport("e:\\temp\\match.gpx");
this generate a gpx file without elevation (lat,lon,time). The elevation is enabled and the values are in the “gpxExtensions”. I have not found a function to enable the “includeElevation:boolean” in the Class GPXFile…
Thanks for this, will look into it at some point. Lower than 5m probably does not make sense as it is then too strict and won’t find close roads anymore.
Would you mind to export the wrong matching part above to make it easier debuggable for me?
If this brings something, I like to help. But that need not be, if it does not serve the causal thing.
However, it is intended not only to increase employment.
Yoe can split the original track easy with GPS Prune