Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (767)
Games in Android Showcase (229)
games submitted by our members
Games in WIP (854)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Understanding Google Map server (Update)  (Read 6003 times)
0 Members and 1 Guest are viewing this topic.
Offline DzzD
« Posted 2007-12-12 16:08:41 »

url have been updated as old one did not work anymore

Here is an explanation on how google map server works, it took me some time to undertand it, when i finnaly found that it is really simple!

google map server "" or "" or etc... is a quadtree of 256*256 jpg:

NB: I play by computing and approximation of number of jpg handled by google maps server about 2*4^19 jpg(256*256) or 2^39!!

Lets look at the following url:
new URL

explanation of parameter:
v : length of t parameter can be higher but cannot be lesser than t parameter lenght (so you can let it to 20)
t : jpg location in the quad tree begining with "t"

The above url t parameter means:
first jpg of the first tree level "q"
second jpg of the first tree level "r"
third jpg of the first tree level "s"
fourth jpg of the first tree level "t"

how it is divided:

each level is than subdivided in 4 same way:
qq means first sub jpg of the first jpg

you may better understand with this picture :

So to have the first quarter of the earth:

and the first quarter of the first quarter:

it is easy to convert latitude and longitude to quarter you can see a demo online there:

have fun!

If you are interrested in the demo source code just right click on your browser and select view source there is no outside files, the whole source including jscript is in the the html source code.

Offline kevglass

« JGO Spiffy Duke »

Medals: 319
Projects: 25
Exp: 22 years

Coder, Trainee Pixel Artist, Game Reviewer

« Reply #1 - Posted 2007-12-12 16:27:47 »

s and t are the wrong way round on the top level of your diagram.

Neat stuff tho! Smiley


Offline DzzD
« Reply #2 - Posted 2007-12-12 16:46:50 »

oups... fixed, thanks

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline thijs

Junior Devvie

Lava games rock!

« Reply #3 - Posted 2007-12-13 11:16:31 »

Nice work Bruno!

Time to start using this for streaming LOD textures for our 3D Earth demo dont you think? Wink

<a href="">3DzzD!</a>
<a href="">Arcazoid!</a>
Offline DzzD
« Reply #4 - Posted 2007-12-15 17:45:18 »

Time to start using this for streaming LOD textures for our 3D Earth demo dont you think?

inded it could be really cool a google earth lite edition working with JVM 1.1.

but dont really know if those image can be used , google show images in its search engine image section so i guess if they do (showing image from other servers) I thing we should be able to do the same and use image from google map server ?

anyways it would really cool

Offline DzzD
« Reply #5 - Posted 2007-12-15 20:05:07 »

ps.: I forgot to mention this url

wich show the whole earth map (zoom=0)

Offline SimonH
« Reply #6 - Posted 2007-12-18 02:05:55 »

This is great! Hours of fun  Smiley
BTW Is there a simple system for converting longitute/latitude to '' format?

People make games and games make people
Offline DzzD
« Reply #7 - Posted 2007-12-18 10:37:20 »

yup just look at the html source code of the given demo link in the first post, all the jscript is inside, it is easily convertible to any other language.


this one, right click qnd select "view html source code"

Offline DzzD
« Reply #8 - Posted 2009-07-09 00:52:48 »

seems that something was changed google side, so  I have update this post with the new working URL (old one did not work anymore), online sample has also been updated : )

have fun

Pages: [1]
  ignore  |  Print  

EgonOlsen (1256 views)
2018-06-10 19:43:48

EgonOlsen (1124 views)
2018-06-10 19:43:44

EgonOlsen (862 views)
2018-06-10 19:43:20

DesertCoockie (1271 views)
2018-05-13 18:23:11

nelsongames (1104 views)
2018-04-24 18:15:36

nelsongames (1335 views)
2018-04-24 18:14:32

ivj94 (2073 views)
2018-03-24 14:47:39

ivj94 (1226 views)
2018-03-24 14:46:31

ivj94 (2169 views)
2018-03-24 14:43:53

Solater (792 views)
2018-03-17 05:04:08
Deployment and Packaging
by mudlee
2018-08-22 18:09:50

Java Gaming Resources
by gouessej
2018-08-22 08:19:41

Deployment and Packaging
by gouessej
2018-08-22 08:04:08

Deployment and Packaging
by gouessej
2018-08-22 08:03:45

Deployment and Packaging
by philfrei
2018-08-20 02:33:38

Deployment and Packaging
by philfrei
2018-08-20 02:29:55

Deployment and Packaging
by philfrei
2018-08-19 23:56:20

Deployment and Packaging
by philfrei
2018-08-19 23:54:46 is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!