Page 3 of 12 FirstFirst 123456789101112 LastLast
Results 21 to 30 of 111
Discuss [Maps] custom MapTiles caches [PC app, iPhone script] at the Free Toolchain Software (Cydia App's) - Hackint0sh.org; There is an offline location lookup program, it's called Cello. Currently it's only got databases ...
  1. #21
    Newbie Array

    Join Date
    Jan 2008
    Posts
    4
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    There is an offline location lookup program, it's called Cello. Currently it's only got databases for Australia but I'm sure people are working on databases for other areas.
    http://iphone.nudge.id.au/Cello/

    My only problem with the offline caches is zooming, I downloaded my state, worked fine, made a huge database which I copied to phone and linked in, and in maps it comes straight up at the max zoom level that was downloaded. But if I try to zoom in it loses it's place and I don't get any images.
    Is there any way to convince it to zoom in sanely, or should you only download one zoom level that you want to work with?

    I think it'd be possible to get cello to work with offline maps and control the jumping by making cello first place it's location in mapp.app's location cache to let it know it's already been there before. I'm guessing that would require cello to search the sqlite db for the appropriate tile that it's located you to be at. I'll have to get in touch with the cello dev to discuss this I think.

    Andrew


  2. #22
    Newbie Array

    Join Date
    Feb 2008
    Posts
    3
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    Hi CoronaFire,

    Thanks for getting in touch with me! And thanks in7ane for what sounds like a kick ass script, I've been looking for something like this in ages! I used to "browse" the maps manually when online to cover areas I wanted to look at later for offline use.

    I am the dev for Cello, it is basically a GSM cell tower locator that works totally offline. It does this by having a database containing the lat/lon coordinates of cell towers. Currently, there is only support for Australia (AU) and Czech Republic (CZ). Cello allows the user to be taken directly to the map of the closest tower (doesnt do trilateration yet -- I'll work on it soon). The way it does this is by instructing Maps.app to open at the specified lat/lon coordinate at a zoom level of 14 (i think its 14 anyway..).

    The Maps.app will then internally load the maps from cache located at /var/mobile/Library/Caches/MapTiles/MapTiles.sqlitedb, or attempt to download missing tiles from the internet. The maps cache will cache up any map tiles previously browsed. It will cache all browsed tiles, regardless of zoom level or tile type (sat, hybrid, map). I find it usually works pretty well. Though, I have not figured out the maps cache flushing policy yet, as I've noticed periodically it clears the cache and I have to go back and "re-browse" areas manually I want covered.

    I will give this script a go and see if i can reproduce your issue CoronaFire. Unfortunately it probably won't be till 3 weeks time, as I'll be in Japan and won't be back in Australia till the 24 of March.

  3. #23
    Rookie Array

    Join Date
    Jan 2008
    Posts
    18
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    I think how you seek to a location affects whether Maps.app picks up on the cache or not. iLM and the scripts create a new com.apple.Maps.plist with the coordinates and then launch Maps.app. If you call it by passing an URL or otherwise (http://maps.google.com... launches it at a location I think) what may happen is that Maps.app starts up at the previous/default location and then navigates to the set location - therefore never picking up on the cache.

    This is all just a guess, however if you load a map via iLM and then navigate away from it you will not be able to navigate back and have Maps.app start using the cached tiles.

  4. #24
    Newbie Array

    Join Date
    Mar 2008
    Posts
    1
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    Quote Originally Posted by in7ane View Post
    Fix for 1.1.3, place maps in var/mobile/Media/Maps now (on the Installer source, http://www.in7ane.com/iphone.xml , thanks to jason-hk.com), if you want just the shell script that creates the links: http://www.in7ane.com/iphone/iLM-113fix.zip

    GMDL updated to allow setting the hybrid layer (works on 1.1.3 only) and version now set to 4,17 (was 4,0 before, which still works, if 4,17 fails in 1.1.2 maximize the window and change back to 4,0 from 4,17). http://www.in7ane.com/psp/gmdl0.5.05a.zip

    Sample FreeMap.co.il map on the Installer source.
    I need help. I have a 1.1.3 iphone, unlocked using ziphone. I download iLM and the iLM fixed from my iphone via Jason's site. I also got the maps from GMDL and transfer the files through a SFTP client. THe two map files (.plist and .sqlitedb) were placed in a folder and this folder was placed under "var/mobile/Media/Maps" However, when I lauched ilM, it was blank..I dun see my map folder name. Can someone please let me know what I did wrong? thanks

  5. #25
    Newbie Array

    Join Date
    Jan 2008
    Posts
    4
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    By memory I think the ILM application still thinks it has to look at /var/root. I'm pretty sure I got it going with a symlink, so from ssh do:

    chmod -R 777 /var/mobile/Media/Maps
    ln -s /var/mobile/Media/Maps /var/root/Media/

    might fix it

    Andrew


  6. #26
    Rookie Array

    Join Date
    Jan 2008
    Posts
    13
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    in7ane, I am highly concerned about "version" issue.

    Do you know how we can poll the current maps version from Google server? If we know how to do it, we can make a small app that will update the version value of our map caches to that value. Currently Maps application discards custom cache if the version does not match, and that is very annoying.

    Currently I am manually updating all my custom caches to the '18' value, but who knows when the version number changes again... Thanks again for your efforts, by the way!

    Update: Oh, by the way, there can be another way. We may try to patch Maps application, so it would discard cache if its version number is LESS that current, not equal. Then we can use the version value of custom cache set to max value.

    Update #2. I've made some experiements with different values, and found out that the value "0" does not cause Maps to discard cache immediately, at least on firmware 1.1.2. But it seems that Maps replaces it with the current value...
    Last edited by SimbaAZ; 03-28-2008 at 08:43 PM.

  7. #27
    Rookie Array

    Join Date
    Jan 2008
    Posts
    18
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    SimbaAZ: Thanks for spotting that, in GMDL I put in a fix and a batch fix for all subdirectories (point it at Maps and it will go through all of them). Also, if you want an easier way to check/update the version table to values other than 0 drag the window out and there are some hidden controls to the right.

    New GMDL 0.5.05b at: http://www.in7ane.com/psp/gmdl.html

    The version is from the Google server not Maps.app (I'm on 1.1.3 and it started out on 17 and is now also at 18). I can also confirm the updating behaviour from 0 to 18. Problem is if the sqlitedb is linked via iLM it gets updated and will then break once the remote version goes to 19. A fix would be to have iLM.app update the version table on each load, but I do not have the source to that, it is from http://www.weiphone.com/thread-54060-1-1.html


    caveman4x4: If you have installed the 1.1.3+ Fix the problem is most likely permissions, make sure you chmod 777 the map directory and the two enclosed files (the problem arises when you ssh into the iPhone as root to upload files, while iLM runs as mobile and does not have permission to see the files created by root).

  8. #28
    Rookie Array

    Join Date
    Jan 2008
    Posts
    13
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    in7ane, I am not sure anymore that the update of version number with iLM or similar application is the right solution, because in most cases we will understand that the version number on Google server was incremented, only after Maps.app discards our cache, i.e. too late.

    I am going to keep backup versions of my custom caches, created with the '0' version number, and simply restore the cache from those backups in the case of server version change.

  9. #29
    Newbie Array

    Join Date
    Apr 2008
    Posts
    8
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Lightbulb

    Hi everyone.
    Thanks in7ane for your great work.
    However I can't get it to work. I managed to download the maps, upload them on my Iphone and I installer iLM through installer.app

    Now I can launch iLM, choose a map then press" Go to Maps" but when I go to the city I downloaded I can't see anything.
    When I press clear cache, I can still see part of the maps I cached in online mode.

    Any clue?
    Last edited by neFAST; 04-10-2008 at 08:32 PM.

  10. #30
    Advanced Array

    Join Date
    Oct 2007
    Posts
    35
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    Is there any chance in downloading the maps through a simpler application on a mac?
    I don't have a windows pc at home and once i tested the app on a friend's windows pc i found it very complex...


 

 

LinkBacks (?)


Similar Threads

  1. Custom URL scheme and shell script question
    By fubaya in forum iPhone Developer Exchange
    Replies: 2
    Last Post: 10-29-2009, 05:09 AM
  2. Google Maps: maptiles.sqlitedb resets itself
    By GrimStranger in forum Free Toolchain Software (Cydia App's)
    Replies: 2
    Last Post: 08-03-2008, 01:27 AM
  3. Replies: 5
    Last Post: 08-02-2008, 09:29 PM
  4. [Maps] Can we download maps from Google Maps?
    By fuzzy in forum Free Toolchain Software (Cydia App's)
    Replies: 9
    Last Post: 12-21-2007, 06:45 PM
  5. WWWOFFLE - Proxy that caches websites for offline viewing
    By Zero3K in forum Free Toolchain Software (Cydia App's)
    Replies: 2
    Last Post: 12-16-2007, 02:27 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Powered by vBulletin®
Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.
Search Engine Friendly URLs by vBSEO
(c) 2006-2012 Hackint0sh.org
All times are GMT +2. The time now is 07:36 AM.
twitter, follow us!