Skip to content

Commit e615522

Browse files
authored
Match flow with vector tiles
1 parent 7dfea8b commit e615522

File tree

1 file changed

+18
-6
lines changed

1 file changed

+18
-6
lines changed

docs/use-service.md

+18-6
Original file line numberDiff line numberDiff line change
@@ -14,35 +14,47 @@ Once you have your Mapzen API key you'll need include it with Terrain Tile reque
1414

1515
## Requesting tiles
1616

17-
You can request tiles using Mapzen's global CDN:
17+
Request a single tile with this URL pattern to get started:
18+
19+
```
20+
https://tile.mapzen.com/mapzen/terrain/v1/{layers}/{z}/{x}/{y}.{format}?api_key={your_mapzen_api_key}
21+
```
22+
23+
The [OpenStreetMap Wiki](http://wiki.openstreetmap.org/wiki/Slippy_map_tilenames) has more information on this url scheme.
24+
25+
Here’s a sample tile in Normal format:
26+
27+
```
28+
http://tile.mapzen.com/mapzen/terrain/v1/normal/11/330/790.png?api_key=your_mapzen_api_key
29+
```
1830

1931
##### Terrarium
2032

2133
```
22-
https://tile.mapzen.com/mapzen/terrain/v1/terrarium/{z}/{x}/{y}.png?api_key=your_mapzen_api_key
34+
https://tile.mapzen.com/mapzen/terrain/v1/terrarium/{z}/{x}/{y}.png?api_key={your_mapzen_api_key}
2335
```
2436

2537
##### Normal
2638

2739
```
28-
https://tile.mapzen.com/mapzen/terrain/v1/normal/{z}/{x}/{y}.png?api_key=your_mapzen_api_key
40+
https://tile.mapzen.com/mapzen/terrain/v1/normal/{z}/{x}/{y}.png?api_key={your_mapzen_api_key}
2941
```
3042

3143
##### GeoTIFF
3244

3345
```
34-
https://tile.mapzen.com/mapzen/terrain/v1/geotiff/{z}/{x}/{y}.tif?api_key=your_mapzen_api_key
46+
https://tile.mapzen.com/mapzen/terrain/v1/geotiff/{z}/{x}/{y}.tif?api_key={your_mapzen_api_key}
3547
```
3648

3749
Note: GeoTIFF format tiles are 512x512 sized so request the parent tile’s coordinate. For instance, if you’re looking for a zoom 14 tile then request the parent tile at zoom 13.
3850

3951
##### Skadi
4052

4153
```
42-
https://tile.mapzen.com/mapzen/terrain/v1/skadi/{N|S}{y}/{N|S}{y}{E|W}{x}.hgt.gz?api_key=your_mapzen_api_key
54+
https://tile.mapzen.com/mapzen/terrain/v1/skadi/{N|S}{y}/{N|S}{y}{E|W}{x}.hgt.gz?api_key={your_mapzen_api_key}
4355
```
4456

45-
Note: Skadi files are split into 1° by 1° grids. File names refer to the latitude and longitude of the lower left corner of the tile - e.g. N37W105 has its lower left corner at 37 degrees north latitude and 105 degrees west longitude. For example: N37W105: `https://tile.mapzen.com/mapzen/terrain/v1/skadi/N37/N37W105.hgt.gz?api_key=your_mapzen_api_key`.
57+
Note: Skadi files are split into 1° by 1° grids. File names refer to the latitude and longitude of the lower left corner of the tile - e.g. N37W105 has its lower left corner at 37 degrees north latitude and 105 degrees west longitude. For example: N37W105: `https://tile.mapzen.com/mapzen/terrain/v1/skadi/N37/N37W105.hgt.gz?api_key={your_mapzen_api_key}`.
4658

4759
#### Additional Amazon S3 Endpoints
4860

0 commit comments

Comments
 (0)