maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   Maemo Mapper v1.4 for 770/N800 (https://talk.maemo.org/showthread.php?t=4691)

rhackenb 2007-11-20 19:45

Re: Maemo Mapper v1.4 for 770/N800
 
I have just installed Maemo Mapper 2.05 on my N800. I'm impressed with all the new features. Way to go, gnuite!

I have a question about the way maps are stored. For Google Street maps, all the maps seem to be stored in a single file called GStreet.db. Is there a fuller discussion somewhere about this database file? I would like to know how I can inspect it to see which maps it contains. Is this a sqlite database?

When I installed 2.05, I had to start fresh with downloading all my maps again. No complaint there but I wonder what the best strategy is for doing something like this. I basically want to have the entire US at a fairly zoomed out level and then certain regions at various zoomed in levels. I end up redownloading maps because of the overlap of what is seen on the display. I had the very same issue when I tried to perform this operation when map files were stored in various subdirectories. This is a very hit-and-miss way to do it. Maybe it would be better if we could stage the collection of maps on our desktop and then transfer everthing over to the n800. That's the approach that Garmin Mapsource uses.

Related to the downloading of maps, why is it that when I try to use my desktop (Linux/Firefox) to go
http://mt.google.com/mt?n=404&v=w2.9...d&y=%d&zoom=%d
I get "The requested URL /mt?n=404&v=w2.999&x=%25d&y=%25d&zoom=%25d was not found on this server." What's the trick for downloading maps from google on the desktop?

gnuite 2007-11-20 21:29

Re: Maemo Mapper v1.4 for 770/N800
 
Quote:

Originally Posted by rhackenb (Post 97908)
I have a question about the way maps are stored. For Google Street maps, all the maps seem to be stored in a single file called GStreet.db. Is there a fuller discussion somewhere about this database file? I would like to know how I can inspect it to see which maps it contains. Is this a sqlite database?

No, it's a GDBM database. There is information about GDBM scattered around the internet.

Quote:

Originally Posted by rhackenb (Post 97908)
When I installed 2.05, I had to start fresh with downloading all my maps again. No complaint there but I wonder what the best strategy is for doing something like this. I basically want to have the entire US at a fairly zoomed out level and then certain regions at various zoomed in levels. I end up redownloading maps because of the overlap of what is seen on the display. I had the very same issue when I tried to perform this operation when map files were stored in various subdirectories. This is a very hit-and-miss way to do it. Maybe it would be better if we could stage the collection of maps on our desktop and then transfer everthing over to the n800. That's the approach that Garmin Mapsource uses.

As with v1.4.x, Maemo Mapper does not download maps that you already have, unless you explicitly enable the "Overwrite" option on the "Manage Maps" dialog. So, it's not really hit-and-miss. In fact, this is the way I cache maps onto my memory card.

Quote:

Originally Posted by rhackenb (Post 97908)
Related to the downloading of maps, why is it that when I try to use my desktop (Linux/Firefox) to go
http://mt.google.com/mt?n=404&v=w2.9...d&y=%d&zoom=%d
I get "The requested URL /mt?n=404&v=w2.999&x=%25d&y=%25d&zoom=%25d was not found on this server." What's the trick for downloading maps from google on the desktop?

The "%d" strings are substituted by Maemo Mapper depending on the particular tile that you want to download (which depends on your latitude and longitude).
Substitude real integer values to get maps. Not all integer combinations are valid, though. For example, substituting x=4, y=2, and zoom=14 will give you a very high-level map this displays much of Europe.

rhackenb 2007-11-21 00:43

Re: Maemo Mapper v1.4 for 770/N800
 
Quote:

Originally Posted by gnuite (Post 97949)
The "%d" strings are substituted by Maemo Mapper depending on the particular tile that you want to download (which depends on your latitude and longitude).
Substitude real integer values to get maps. Not all integer combinations are valid, though. For example, substituting x=4, y=2, and zoom=14 will give you a very high-level map this displays much of Europe.

Thanks for the info. I'll look into GDBM. Is there a client for Maemo?

When I used the following url:
http://mt.google.com/mt?n=404&v=w2.9&x=4&y=2&zoom=14
I got the same error:

The requested URL /mt?n=404&v=w2.9&x=4&y=2&zoom=14 was not found on this server.

The problem doesn't seem like it's just with the numbers but it doesn't use the http;/ That's the problem I have been having all along. Is there url correct?

gnuite 2007-11-21 01:07

Re: Maemo Mapper v1.4 for 770/N800
 
Quote:

Originally Posted by rhackenb (Post 98030)
Thanks for the info. I'll look into GDBM. Is there a client for Maemo?

When I used the following url:
http://mt.google.com/mt?n=404&v=w2.9&x=4&y=2&zoom=14
I got the same error:

The requested URL /mt?n=404&v=w2.9&x=4&y=2&zoom=14 was not found on this server.

The problem doesn't seem like it's just with the numbers but it doesn't use the http;/ That's the problem I have been having all along. Is there url correct?

Ah, I see the problem. The original URL that you posted was the "abbreviated" version that Internet Tablet Talk displays when you try to paste a long URL. If you go to the Maemo Mapper Repositories thread, you'll see URLs with ellipses ("...") in them, but if you right-click (or tap-and-hold on your Nokia device) and select "Copy Link Location", then the entire URL will be copied to the clipboard. That is the URL with the %d's that you need to replace.

FYI, the only problem with the URL in your latest post was the "version number" ("v=w2.9"). w2.9 is a very old version number that Google Maps deprecated long ago. The current version is up to w2.61, but since it's always changing (and since this hack seems to work), I recommend using w2.999. Specifying a greater-than-the-current-maximum version forces Google to use the latest version, and it means you won't have to worry about updating the version number every time it's deprecated.

rhackenb 2007-11-21 15:21

Re: Maemo Mapper v1.4 for 770/N800
 
I actually put in the url without the v=w2.9 and it got me a map. The v-w2.9 was the thing that was killing it. I then put in the following url as you suggested:
http://mt.google.com/mt?v=w2.999&x=4&y=2&zoom=14
and it worked fine. Maybe we don't even have to use the version parameter. Here it is without the version:
http://mt.google.com/mt?x=4&y=2&zoom=14

Thank you for taking the time to help with this. This whole issue with downloading these maps is somewhat mysterious and now I think I understand it. I wonder what other parameters can be used. I now can write some Perl code that will do my own bulk downloads to my desktop. I will try to write up a wiki on this. Not sure how to post it to the maemo wiki but I may post it to may own website. I may include the Perl code as well.

Thanks for all the help.

rhackenb

nightwing310 2007-11-29 22:27

Re: Maemo Mapper v1.4 for 770/N800
 
To find a destination you need to be on the internet to get the route?

gnuite 2007-11-29 22:32

Re: Maemo Mapper v1.4 for 770/N800
 
Quote:

Originally Posted by nightwing310 (Post 102208)
To find a destination you need to be on the internet to get the route?

Yes. Maemo Mapper doesn't have access to road information, because it is free and that data is generally expensive. It can be retrieved from an internet-based web service, however, which does have access to road information.

vtolkov 2007-11-30 07:23

Re: Maemo Mapper v1.4 for 770/N800
 
Have you seen new Google Terrain map? It would be cool to add it into repository.

Thanks, BTW. I love the app.

MarkW 2007-11-30 12:35

Re: Maemo Mapper v1.4 for 770/N800
 
Quote:

Originally Posted by dont (Post 88743)
I am interested in trying MM with nautical charts, has anyone done this?

I figured this out yesterday. I spent quite a bit of time messing with it, but ultimately, it's quite simple. As you said, you start with mapcruncher and the tiff of the chart. You recalibrate it and let map cruncher do its rendering into tiles. And then what you're left with are tile files in the same format/naming convention that Virtual Earth uses internally. So what's left to do is roll your own Virtual Earth style map repository, which can be done simply by dumping the tile files into a directory of a handy web server and creating a repository in Maemo Mapper. I have a web server running locally on a computer on my home network with an address of 192.168.0.9, and the tiles are in a web server directory called tiles, so the url looks like:

http://192.168.0.9/tiles

and the Maemo mapper repository url looks like:

http://192.158.0.9/tiles/%0s.png

Then I used the maemo mapper auto downloading to pull in the chart. Using another repository, I navigated to the chart area, then switched to my chart repository and scrolled around to bring in the chart.

rhackenb 2007-11-30 15:52

Re: Maemo Mapper v1.4 for 770/N800
 
MarkW,
192.168.0.9 is an address within your home network and is not visible to the outside world. You may have that server visible from the outside but it will probably be an address assigned to you by your provide.


All times are GMT. The time now is 09:04.

vBulletin® Version 3.8.8