10.08.2010, 13:21
Hi
Your RouteConverter is just great. On thing I just found is about handling Google Map links. I know you state it's currently broken, but for my own purposes I provided a small fix, perhaps you would like to incorporate it in your own code as well.
The trick is, that you just add "&output=kml" to the Google Maps URL. Now this currently does not work with RouteConverter, because you still have a "isGoogleMapsUrl" check inside NavigationFileParser.java. So your converter still tries to parse the URL as a standard google-maps link.
So there are two things you could do:
1.) Remove the "isGoogleMapsUrl" check in your code (line 200 or so in NavigationFileParser.java), so when I manually add "&output=kml" to the Google maps url, it will automatically choose the KML converter instead (This I'm currently doing)
2.) Add the "&output=kml" to the URL by yourself and convert it as normal KML, which already works fine with RouteConverter.
again, thanks your your great converter!
Michael
Your RouteConverter is just great. On thing I just found is about handling Google Map links. I know you state it's currently broken, but for my own purposes I provided a small fix, perhaps you would like to incorporate it in your own code as well.
The trick is, that you just add "&output=kml" to the Google Maps URL. Now this currently does not work with RouteConverter, because you still have a "isGoogleMapsUrl" check inside NavigationFileParser.java. So your converter still tries to parse the URL as a standard google-maps link.
So there are two things you could do:
1.) Remove the "isGoogleMapsUrl" check in your code (line 200 or so in NavigationFileParser.java), so when I manually add "&output=kml" to the Google maps url, it will automatically choose the KML converter instead (This I'm currently doing)
2.) Add the "&output=kml" to the URL by yourself and convert it as normal KML, which already works fine with RouteConverter.
again, thanks your your great converter!
Michael