Quick Question - VirtualEarth Tile Request Syntax

For all other discussions about AlpineQuest
Yemble
Posts: 333
Joined: Sun Apr 28, 2013 5:02 pm

Quick Question - VirtualEarth Tile Request Syntax

Post by Yemble » Tue May 24, 2016 3:06 pm

The VirtualEarth syntax goes something like:

Code: Select all

http://ax.t0.tiles.virtualearth.net/tiles/r{$q}.png?[b]g=3467[/b]&productSet=...
What is the significance of the highlighted number (g=xxxx)?
Can this number be anything, or does it have an effect upon which tiles are downloaded?

Psyberia-Support
Site Admin
Posts: 4884
Joined: Wed Apr 14, 2010 9:41 pm

Re: Quick Question - VirtualEarth Tile Request Syntax

Post by Psyberia-Support » Tue May 24, 2016 3:34 pm

This is just a counter which is increased on a daily basis. It may have something to do with the cache management, called a "salt" (so all requests are different everyday), but it may also be something completely different. Bing doesn't seem to care about this value, you just have to not use a greater value than the current one, but old values work fine. It won't affect the result image anyway.
Instead of a fixed value, you can put "{$param:bing-g}" and AQ will take care of using an updated value:

Code: Select all

...r{$q}.png?g={$param:bing-g}&productSet=...
Do you like AlpineQuest ? Leave a small comment on Google Play !

Yemble
Posts: 333
Joined: Sun Apr 28, 2013 5:02 pm

Re: Quick Question - VirtualEarth Tile Request Syntax

Post by Yemble » Tue May 24, 2016 5:39 pm

Super, many thanks for the info :-)

Post Reply