---
title: "Escolas, hospitais, transporte e comércio próximos"
method: GET
path: "/projects/{id}/nearby-services"
tags: ["Projetos"]
---

# Escolas, hospitais, transporte e comércio próximos

`GET /projects/{id}/nearby-services`

## Request

- Base URL: `https://obraaberta.com.br/api/v1`
- URL: `https://obraaberta.com.br/api/v1/projects/{id}/nearby-services`
- Auth: none declared

Dados do OpenStreetMap via Overpass, com cache de 7 dias por obra e raio. Licença ODbL.

## Path parameters

- `id` string, required

## Query parameters

- `radius_km` number
- `types` string

## Response `200`

OK

- ServicosProximos
  - `schools` PontoInteresse[]
    - `id` string
    - `name` string
    - `distance_km` number
    - `type` string, nullable
    - `operator` string, nullable
    - `address` string, nullable
    - `phone` string, nullable
    - `source` string
  - `hospitals` PontoInteresse[]
    - `id` string
    - `name` string
    - `distance_km` number
    - `type` string, nullable
    - `operator` string, nullable
    - `address` string, nullable
    - `phone` string, nullable
    - `source` string
  - `transport` PontoInteresse[]
    - `id` string
    - `name` string
    - `distance_km` number
    - `type` string, nullable
    - `operator` string, nullable
    - `address` string, nullable
    - `phone` string, nullable
    - `source` string
  - `commerce` PontoInteresse[]
    - `id` string
    - `name` string
    - `distance_km` number
    - `type` string, nullable
    - `operator` string, nullable
    - `address` string, nullable
    - `phone` string, nullable
    - `source` string
  - `cached` boolean
  - `degraded` boolean: true quando a resposta usa cache antigo, a fonte está indisponível ou só parte das consultas respondeu
  - `source_status` 'fresh' | 'partial' | 'cache' | 'stale_cache' | 'unavailable'
  - `attribution` string

## Other responses

- `400`: Parâmetro inválido
- `404`: Não encontrado
- `429`: Limite de requisições excedido
- `500`: Erro interno

---

[API](https://skmtc.dev/obraaberta/apis/obraaberta-api.md) · [All operations](https://skmtc.dev/obraaberta/apis/obraaberta-api/llms.txt) · [OpenAPI document](https://skmtc.dev/obraaberta/apis/obraaberta-api/revisions/cfaed100c33c?raw)
