RouteConverter Forum
Reading Navigon for iPhone .targets format - Printable Version

+- RouteConverter Forum (https://forum.routeconverter.com)
+-- Forum: Users (https://forum.routeconverter.com/forum-17.html)
+--- Forum: English: Discussions (https://forum.routeconverter.com/forum-12.html)
+--- Thread: Reading Navigon for iPhone .targets format (/thread-1180.html)



Reading Navigon for iPhone .targets format - eimer - 10.12.2011

Hi,
I am trying to figure out how to read the position files from Navigon for the IPhone. Even though they called .targets it does not appear to be the same format as the .route format as suggested by this commit:

https://github.com/cpesch/RouteConverter/commit/14dd743a0c602c59d4c35cc4bf1cea30f64876e1

By that I mean that renaming the file and opening it as a .route file doesn't work.

Just opening the file in a hex or test editor, it definitely looks like a binary format (readable string snippets sprinkled throughout the "noise"). Can you tell I am not experienced with binary formats? Smile

The reason I want to open this file and convert it is because Navigon have sloppy QA. Apparently I shouldn't have expected my stored favorites and routes to survive a software update. So, I extracted the iPhone backup on my computer to gain access to the files. Since I am apparently not alone in loosing all my data it may even be a useful feature for RouteConverter.

What I was hoping for was simply some basic tips on how I might try to parse this file. I am a web-developer (= happy to write my own scripts and do some unpack on the data in various ways) but I rarely and reluctantly deal with binary files of this kind.

Any ideas greatly appreciated
/Martin


RE: Reading Navigon for iPhone .targets format - routeconverter - 14.12.2011

(10.12.2011, 23:13)eimer Wrote: Just opening the file in a hex or test editor, it definitely looks like a binary format (readable string snippets sprinkled throughout the "noise"). Can you tell I am not experienced with binary formats? Smile

I don't like them either since there is almost never a documentation for file formats in the GPS space.

(10.12.2011, 23:13)eimer Wrote: What I was hoping for was simply some basic tips on how I might try to parse this file.

Well, have a look at the NavigonRouteFormat, then at your file, start the debugger, set breakpoints, compare data, modify the code. Start at the beginning. Calm down and be patient ;-)