Parchment Docs

Offline

Region packages for search and directions without a connection

Places package

Named places, streets and transit stops inside the box, for searching and opening place pages offline.

GET
/offline/places

Query Parameters

bboxRequiredstring

west,south,east,north in WGS 84

Pattern: "^-?\\d+(\\.\\d+)?(,-?\\d+(\\.\\d+)?){3}$"
daysstring | number

Response Body

curl -X GET "https://example.com/offline/places?bbox=string&days=0"
fetch("https://example.com/offline/places?bbox=string&days=0")
package main

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

func main() {
  url := "https://example.com/offline/places?bbox=string&days=0"

  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/offline/places?bbox=string&days=0"

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

print(response.text)
Empty

Timetable package

Scheduled transit inside the box: stops, routes, trips and walking transfers for the next days days (14 by default).

GET
/offline/timetable

Query Parameters

bboxRequiredstring

west,south,east,north in WGS 84

Pattern: "^-?\\d+(\\.\\d+)?(,-?\\d+(\\.\\d+)?){3}$"
daysstring | number

Response Body

curl -X GET "https://example.com/offline/timetable?bbox=string&days=0"
fetch("https://example.com/offline/timetable?bbox=string&days=0")
package main

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

func main() {
  url := "https://example.com/offline/timetable?bbox=string&days=0"

  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/offline/timetable?bbox=string&days=0"

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

print(response.text)
Empty

Street graph package

A walking and cycling street graph covering the box.

GET
/offline/streets

Query Parameters

bboxRequiredstring

west,south,east,north in WGS 84

Pattern: "^-?\\d+(\\.\\d+)?(,-?\\d+(\\.\\d+)?){3}$"
daysstring | number

Response Body

curl -X GET "https://example.com/offline/streets?bbox=string&days=0"
fetch("https://example.com/offline/streets?bbox=string&days=0")
package main

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

func main() {
  url := "https://example.com/offline/streets?bbox=string&days=0"

  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/offline/streets?bbox=string&days=0"

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

print(response.text)
Empty