[talk-au] NearMap PhotoMap imagery for OSM
Roy Wallace
waldo000000 at gmail.com
Tue Dec 29 10:25:56 GMT 2009
On Tue, Dec 29, 2009 at 7:21 PM, Roy Wallace <waldo000000 at gmail.com> wrote:
> On Tue, Dec 29, 2009 at 6:53 PM, Ben Last <ben.last at nearmap.com> wrote:
>>
>>> Ok, I tried this myself and it doesn't work, seemingly because the
>>> slippymap plugin attempts to fetch tiles from <url>/*/*/*.jpg, rather
>>> than <url>&z=<z>&x=<x>&y=<y>&nml=Vert.
>>
>> What is the URL format? If it's possible to change the hostname so that it
>> points at our servers, and to set at least the first part of the path, I
>> could see whether we can implement a custom URL parser for it (like we have
>> for Potlatch).
>
> This is (it seems) detailed here:
> http://wiki.openstreetmap.org/wiki/Slippy_map_tilenames
>
> In short, as described on that page: "Filename(url) format is
> /zoom/x/y.png", where "each zoom level is a directory, each column is
> a subdirectory, and each tile in that column is a file."
Actually, in addition to this, it would be great if you could allow
the date to be specified in the path, i.e. allow us to make requests
in the form of http://www.nearmap.com/maps/<nmd>/<z>/<x>/<y>.jpg
(where <nmd> is the date)
The following related example of an "apache mod_rewrite instance" is
from http://wiki.openstreetmap.org/wiki/Nearmap#SlippyMap_Plugin_.28Method_2.2C_Using_hosted_URL_rewriting.29:
# Allows JOSM slippymap to browse the NearMap Aerial coverage 20091015
RewriteRule nearmap.aerial.slippymap.20091015/(.+)/(.+)/(.+).jpg
http://www.nearmap.com/maps/nmd=20091015&nml=Vert&x=$2&y=$3&z=$1
[L,R=permanent]
More information about the Talk-au
mailing list