Today I've been working on the functionality I proposed yesterday. The final list of all the things I've changed is:
- POIs are now read from map directory and from /PSP/COMMON. The reason for this, is that it allows you to read POIs saved through the PSP browser from http://getroute.nieko.net/ and that these and other POIs in /PSP/COMMON are global, so you can load them in every map you have. (For example, I have a map of the entire Netherlands, and separate maps with more detail for certain towns. I can then use the same POI file everywhere. This also applies to _MY_POIS btw. And yes, I know it does not look too pretty, but it works very well :))
If routes from Google Maps can be downloaded directly in MapThis, then this global access is the only advantage.
- _MY_POIS has been renamed to /PSP/COMMON/_#MY_POIS, so it shows up at the top of the list and it is now global. Keeping "_MY_POIS" and changing the sort algorithm was too much work;
- GPS recording, which didn't work with PSP-290, has changed. When you start recording, MapThis writes "!WAYPOINT" to a _#GPS file. This is a POI file, so you can easily see again the road you've taken before. A new point is written every 20 meters. Also, the current speed and time (GMT) are registered;
- The screen will not turn off automatically when adapter is plugged in (or better, the screen brightness won't change, so it can also just stay off). This only works when viewing maps (not in any menu);
- POI entries where the second line starts with "MIDPOINT" are totally ignored;
- Icons in POI files are first read from map folder, if not found there, then system/icons/ is checked. This allows the user to choose if he wants this customization or fewer files;
- It's now possible in http://getroute.nieko.net/ to swap the input fields, so it's easier to create the road back home.
Deniska: as said in my last post, if you find anything useful, feel free to use it, and tell me if anything still needs tweaking/changing. I have not been able to test this functionality on anything but PSP-290 unfortunately. In the attachment is the code, search for "// Nieko" and "// /Nieko" for changes I've made. This code is based on MapThis 0.497.
I haven't implemented this, and I'm not sure I will get to it later either:
- Only do initPath() after first !WAYPOINT in file, not after last one. In practice, it looks nicer to only have that red line for the last segment you have recorded with the new GPS recording;
- Change http://getroute.nieko.net/ to include several routes at once ("Add destination"). Using the swap button now available, instead you can easily create several routes, which together do the same thing.