Parchment Docs

Proxy

Map tile proxying — keeps provider keys server-side and sidesteps CORS for tile sources MapLibre fetches directly

Proxy Esri basemap tiles

Raster tiles from ArcGIS Location Platform, with the Esri integration key attached server-side. service is world-imagery.

GET
/proxy/esri/{service}/{z}/{y}/{x}

Path Parameters

serviceRequiredstring
zRequiredstring
yRequiredstring
xRequiredstring

Response Body

curl -X GET "https://example.com/proxy/esri/string/string/string/string"
fetch("https://example.com/proxy/esri/string/string/string/string")
package main

import (
  "fmt"
  "net/http"
  "io/ioutil"
)

func main() {
  url := "https://example.com/proxy/esri/string/string/string/string"

  req, _ := http.NewRequest("GET", url, nil)
  
  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  body, _ := ioutil.ReadAll(res.Body)

  fmt.Println(res)
  fmt.Println(string(body))
}
import requests

url = "https://example.com/proxy/esri/string/string/string/string"

response = requests.request("GET", url)

print(response.text)
Empty

Proxy Loom tile service

GET
/proxy/loom/{service}/geo/{z}/{x}/{y}

Path Parameters

serviceRequiredstring
zRequiredstring
xRequiredstring
yRequiredstring

Response Body

curl -X GET "https://example.com/proxy/loom/string/geo/string/string/string"
fetch("https://example.com/proxy/loom/string/geo/string/string/string")
package main

import (
  "fmt"
  "net/http"
  "io/ioutil"
)

func main() {
  url := "https://example.com/proxy/loom/string/geo/string/string/string"

  req, _ := http.NewRequest("GET", url, nil)
  
  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  body, _ := ioutil.ReadAll(res.Body)

  fmt.Println(res)
  fmt.Println(string(body))
}
import requests

url = "https://example.com/proxy/loom/string/geo/string/string/string"

response = requests.request("GET", url)

print(response.text)
Empty

Proxy Mapillary vector tiles

GET
/proxy/mapillary/{dataset}/{version}/{z}/{x}/{y}

Path Parameters

datasetRequiredstring
versionRequiredstring
zRequiredstring
xRequiredstring
yRequiredstring

Response Body

curl -X GET "https://example.com/proxy/mapillary/string/string/string/string/string"
fetch("https://example.com/proxy/mapillary/string/string/string/string/string")
package main

import (
  "fmt"
  "net/http"
  "io/ioutil"
)

func main() {
  url := "https://example.com/proxy/mapillary/string/string/string/string/string"

  req, _ := http.NewRequest("GET", url, nil)
  
  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  body, _ := ioutil.ReadAll(res.Body)

  fmt.Println(res)
  fmt.Println(string(body))
}
import requests

url = "https://example.com/proxy/mapillary/string/string/string/string/string"

response = requests.request("GET", url)

print(response.text)
Empty

Proxy Transitland route tiles

GET
/proxy/transitland/routes/{z}/{x}/{y}

Path Parameters

zRequiredstring
xRequiredstring
yRequiredstring

Response Body

curl -X GET "https://example.com/proxy/transitland/routes/string/string/string"
fetch("https://example.com/proxy/transitland/routes/string/string/string")
package main

import (
  "fmt"
  "net/http"
  "io/ioutil"
)

func main() {
  url := "https://example.com/proxy/transitland/routes/string/string/string"

  req, _ := http.NewRequest("GET", url, nil)
  
  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  body, _ := ioutil.ReadAll(res.Body)

  fmt.Println(res)
  fmt.Println(string(body))
}
import requests

url = "https://example.com/proxy/transitland/routes/string/string/string"

response = requests.request("GET", url)

print(response.text)
Empty

Proxy Transitland stop tiles

GET
/proxy/transitland/stops/{z}/{x}/{y}

Path Parameters

zRequiredstring
xRequiredstring
yRequiredstring

Response Body

curl -X GET "https://example.com/proxy/transitland/stops/string/string/string"
fetch("https://example.com/proxy/transitland/stops/string/string/string")
package main

import (
  "fmt"
  "net/http"
  "io/ioutil"
)

func main() {
  url := "https://example.com/proxy/transitland/stops/string/string/string"

  req, _ := http.NewRequest("GET", url, nil)
  
  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  body, _ := ioutil.ReadAll(res.Body)

  fmt.Println(res)
  fmt.Println(string(body))
}
import requests

url = "https://example.com/proxy/transitland/stops/string/string/string"

response = requests.request("GET", url)

print(response.text)
Empty

Proxy 3D landmark placement tiles

GET
/proxy/barrelman/landmarks/{z}/{x}/{y}

Path Parameters

zRequiredstring
xRequiredstring
yRequiredstring

Response Body

curl -X GET "https://example.com/proxy/barrelman/landmarks/string/string/string"
fetch("https://example.com/proxy/barrelman/landmarks/string/string/string")
package main

import (
  "fmt"
  "net/http"
  "io/ioutil"
)

func main() {
  url := "https://example.com/proxy/barrelman/landmarks/string/string/string"

  req, _ := http.NewRequest("GET", url, nil)
  
  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  body, _ := ioutil.ReadAll(res.Body)

  fmt.Println(res)
  fmt.Println(string(body))
}
import requests

url = "https://example.com/proxy/barrelman/landmarks/string/string/string"

response = requests.request("GET", url)

print(response.text)
Empty

Proxy 3D landmark models

GET
/proxy/barrelman/landmarks/models/{file}

Path Parameters

fileRequiredstring

Response Body

curl -X GET "https://example.com/proxy/barrelman/landmarks/models/string"
fetch("https://example.com/proxy/barrelman/landmarks/models/string")
package main

import (
  "fmt"
  "net/http"
  "io/ioutil"
)

func main() {
  url := "https://example.com/proxy/barrelman/landmarks/models/string"

  req, _ := http.NewRequest("GET", url, nil)
  
  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  body, _ := ioutil.ReadAll(res.Body)

  fmt.Println(res)
  fmt.Println(string(body))
}
import requests

url = "https://example.com/proxy/barrelman/landmarks/models/string"

response = requests.request("GET", url)

print(response.text)
Empty

Proxy precomputed bridge meshes

GET
/proxy/barrelman/bridges/models/{file}

Path Parameters

fileRequiredstring

Response Body

curl -X GET "https://example.com/proxy/barrelman/bridges/models/string"
fetch("https://example.com/proxy/barrelman/bridges/models/string")
package main

import (
  "fmt"
  "net/http"
  "io/ioutil"
)

func main() {
  url := "https://example.com/proxy/barrelman/bridges/models/string"

  req, _ := http.NewRequest("GET", url, nil)
  
  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  body, _ := ioutil.ReadAll(res.Body)

  fmt.Println(res)
  fmt.Println(string(body))
}
import requests

url = "https://example.com/proxy/barrelman/bridges/models/string"

response = requests.request("GET", url)

print(response.text)
Empty

Proxy bridge deck mesh indexes

The precomputed deck meshes a zoom-14 tile meets, with their bounds, from Barrelman; revalidated by ETag.

GET
/proxy/barrelman/bridges/index/{z}/{x}/{y}

Path Parameters

zRequiredstring
xRequiredstring
yRequiredstring

Response Body

curl -X GET "https://example.com/proxy/barrelman/bridges/index/string/string/string"
fetch("https://example.com/proxy/barrelman/bridges/index/string/string/string")
package main

import (
  "fmt"
  "net/http"
  "io/ioutil"
)

func main() {
  url := "https://example.com/proxy/barrelman/bridges/index/string/string/string"

  req, _ := http.NewRequest("GET", url, nil)
  
  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  body, _ := ioutil.ReadAll(res.Body)

  fmt.Println(res)
  fmt.Println(string(body))
}
import requests

url = "https://example.com/proxy/barrelman/bridges/index/string/string/string"

response = requests.request("GET", url)

print(response.text)
Empty

Proxy Barrelman tile requests

GET
/proxy/barrelman/{source}/{z}/{x}/{y}

Path Parameters

sourceRequiredstring
zRequiredstring
xRequiredstring
yRequiredstring

Response Body

curl -X GET "https://example.com/proxy/barrelman/string/string/string/string"
fetch("https://example.com/proxy/barrelman/string/string/string/string")
package main

import (
  "fmt"
  "net/http"
  "io/ioutil"
)

func main() {
  url := "https://example.com/proxy/barrelman/string/string/string/string"

  req, _ := http.NewRequest("GET", url, nil)
  
  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  body, _ := ioutil.ReadAll(res.Body)

  fmt.Println(res)
  fmt.Println(string(body))
}
import requests

url = "https://example.com/proxy/barrelman/string/string/string/string"

response = requests.request("GET", url)

print(response.text)
Empty