1 Attachment(s)
PHP script for routes, POI files in /PSP/COMMON
Hi all :)
I found it quite annoying that the only way to place routes (POI files with WAYPOINT) in MapThis is by means of a PC (e.g. GMDL). I thus made a small script that basically does the same thing. You can find it at:
http://getroute.nieko.net/
(The source can be found at http://nieko.net/tools/getroute.phps.)
I know the algorithm for deciding what MIDPOINTs to take out looks rather random, but for me it seemed to work just fine :) If anyone has suggestions on how to improve this, then feel free to tell me!
The idea is that you can access this script using the PSP browser, and then save the file it returns to a folder in MapThis. Of course you still need a WiFi connection for this, but at least you do not need a PC anymore :) Unfortunately, the stupid PSP browser only wants to save in a few directories, including /PSP/COMMON.
I thus made a few alterations to the MapThis source:
- _MY_POIS has been renamed to _#MY_POIS, so that it shows up at the top of the POI list.
- POI files are read from /PSP/COMMON by default (this includes _#MY_POIS). These show up in the POI list in MapThis as "ms0:/PSP/COMMON/_<name>". The added benefit of this is that route files are now accessible in every map.
- POI files are still also read from the map directory, as in the official version.
- When showing POI files, it doesn't also show _#MY_POIS anymore.
- Icons used in POI files are now always read from MapThis/system/icons.
- The makefile has been slightly changed (removed BUILD_PRX=1), cause otherwise the thing wouldn't compile :P
In the attachment, you can find the patch for MapThis 0.497 beta, and the PSP-290 EBOOT with this functionality.
The patch should be applied in the src/ directory (where main.c, etc. are), and should be called using: cat mapthis-patch | patch -p1
Enjoy :)