Places API

Public Building API

The Public Building API returns about 9,381 OpenStreetMap records tagged as public buildings, including locations, names, and map tags. Coverage spans countries such as Japan, Indonesia, and Georgia. The public-building tag is discouraged by OpenStreetMap; the data is useful for exploring existing tagged features, not as a recommended tagging convention.

Japan, Indonesia · JSON, GeoJSON, CSV, Parquet

POSThttps://api.outerview.ai/v1/stream
curl https://api.outerview.ai/v1/stream \
  -X POST \
  -H "Authorization: Bearer $OUTERVIEW_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "query": "public building",
    "region_id": "208356",
    "limit": 50
  }'

Key facts

  • The API contains about 9,381 OpenStreetMap public-building records.
  • Japan accounts for 44.6% of the records.
  • Indonesia accounts for 10% of the records.
  • Latitude, longitude, OpenStreetMap tags, and source are populated for all records.

Quick start

  1. 1. Create an account and generate an API key on the developer platform.
  2. 2. Send it as a Bearer token in the Authorization header.
  3. 3. Query by place, radius or date (the example searches Saint-Denis).

Bulk download

GET https://api.outerview.ai/api/v1/beacon/public-building/download?format=geojson

Add &region_slug=… to limit to one place. Formats: csv, geojson, parquet.

Sample records

Real records from the data, trimmed to the main fields.

10 records
NameCountryLatitudeLongitude
武雄税務署Japan33.19485130.02138
沖ノ洲樋門Japan34.0788134.58047
Натарыяльная кантораBelarus52.4511230.99729
Administration Générale des DouanesHaiti18.54355-72.34185
Administration Générale des ImpôtsHaiti18.54481-72.34156
Disaster Management UnitTrinidad And Tobago10.64864-61.42577
หมวดการทางหนองหินThailand17.12181101.85886
Young Ambassadors for Peace OfficePapua new Guinea-5.83617142.9802
GemeindekanzleiSwitzerland47.241547.96989
Direction Generale des Impots Direction Regonale AquinHaiti18.28262-73.393

Overview

This API provides OpenStreetMap records associated with the public-building tag. Records may describe named places such as tax offices, customs administrations, government offices, and other public-facing or administrative locations.

Developers and data buyers can use the records for mapping, location analysis, and research. OpenStreetMap discourages this tag and recommends more specific building or feature tags, so treat the results as existing tagged data rather than a preferred classification.

Coverage

The dataset contains about 9,381 records across multiple countries. Japan accounts for 44.6% of records, followed by Indonesia at 10%, Georgia at 6.6%, India at 5.4%, and Russia at 4.6%.

Other represented countries include Haiti, Kenya, and the Philippines. The listed regional coverage includes West Nusa Tenggara and several Japanese prefectures, including Fukuoka, Chiba, and Hiroshima. Sample records also include locations in Haiti, Belarus, Trinidad and Tobago, Thailand, Papua New Guinea, and Switzerland.

Fields

Each record includes latitude and longitude, all available OpenStreetMap tags in properties, and the source dataset. These fields are populated for all records.

The name field is present for 96% of records. Records also include estimated population within one kilometre for 99% and elevation in metres for 98%.

  • latLatitude
  • lngLongitude
  • propertiesAll OpenStreetMap tags for the place
  • sourceSource dataset
  • nameName of the place
  • ghsl_pop_1km_2020How many people live here (people)
  • elevation_mHeight above sea level (m)

Queries

Filter records by region, radius, date, or selected fields to focus an analysis on a place or subset of the available data. Stream results for live queries, or use a bulk download when you need a whole dataset.

Available output formats are JSON, GeoJSON, CSV, and Parquet. The data comes from OpenStreetMap contributors and is available under the ODbL.

Use cases

Build maps of tagged public and administrative buildings, or compare their distribution across countries and regions.

Find named offices and public-service locations for location research, add building context to geographic analysis, examine nearby population and elevation, and audit how public-building features are tagged in OpenStreetMap.

Access and pricing

Data is available in JSON, GeoJSON, CSV, and Parquet. An API key provides access, with a free tier for getting started.

Paid plans are available for higher limits and bulk downloads. Pricing is not stated here.

Frequently asked questions

Is there an API for public-building data in Japan?

Yes, this API provides OpenStreetMap records tagged as public buildings, and Japan accounts for 44.6% of its records. Records include coordinates and OpenStreetMap tags, with a name field for most entries. The tag itself is discouraged by OpenStreetMap, so results reflect existing tagging.

How many public-building records does the API contain?

The dataset contains about 9,381 records. It covers multiple countries, with the largest share in Japan at 44.6%, followed by Indonesia at 10% and Georgia at 6.6%. Coverage and names vary across records.

What fields does the Public Building API return?

Records include latitude, longitude, OpenStreetMap tags, and source dataset. They may also include a place name, estimated population within one kilometre, and elevation in metres. Coordinates, tags, and source are populated for all records; the other fields have slightly lower completeness.

Can I filter public-building records by region or radius?

Yes, you can filter records by region or radius to focus on a geographic area. You can also filter by date or selected fields. The dataset includes coordinates for every record, supporting location-based analysis.

Which countries have the most public-building records?

Japan has the largest share at 44.6%, followed by Indonesia at 10%, Georgia at 6.6%, India at 5.4%, and Russia at 4.6%. Haiti, Kenya, and the Philippines are also among the countries represented in the coverage breakdown.

Does the Public Building API return GeoJSON?

Yes, GeoJSON is one of the available formats. The API also offers JSON, CSV, and Parquet. Records contain latitude and longitude, making them suitable for geographic data workflows.

How often is the public-building data updated?

An update frequency is not specified for this dataset. The records come from OpenStreetMap contributors, so check the available data when you need to confirm whether a particular building or tag is current.

Is the OpenStreetMap public-building tag recommended?

No, OpenStreetMap discourages using this tag. Its guidance recommends building=civic or building=public, or a more specific feature tag such as office=government or amenity=townhall. This API is useful for finding existing public-building-tagged records, not for recommending that tagging choice.

Start building with the Public Building API

Free to try. Paid plans raise limits and unlock bulk downloads.