Barrelman Docs

Places

Fetch full place detail by its OSM identity (type + ID).

Get place by OSM ID

Fetches a single place by its OSM element type and ID (e.g. /place/node/5718230659).

Returns the full place record including:

  • All raw OSM tags
  • Structured address, contact info, opening hours
  • All name variants (names array — multilingual / alt names)
  • Abbreviated name for autocomplete (name_abbrev)
  • Centroid geometry (always present)
  • Full polygon/linestring geometry for ways and relations (full_geometry)
  • Administrative level and area in m² for area features

Returns 404 if the place is not found in the database (either it doesn't exist in OSM or was filtered during import).

GET
/place/{osmType}/{osmId}

Path Parameters

osmTypeRequiredstring

OSM element type: node, way, or relation.

osmIdRequiredstring

Numeric OSM element ID.

Response Body

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

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

func main() {
  url := "https://example.com/place/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/place/string/string"

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

print(response.text)
Empty