Projetos

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

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

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

Path parameters

idstring required

UUID ou slug do recurso.

Query parameters

radius_kmnumber
typesstring

schools,hospitals,transport,commerce

Response

OK

cachedboolean
degradedboolean

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'
attributionstring

Example response

{
  "schools": [
    {
      "source": "openstreetmap"
    }
  ],
  "hospitals": [
    {
      "source": "openstreetmap"
    }
  ],
  "transport": [
    {
      "source": "openstreetmap"
    }
  ],
  "commerce": [
    {
      "source": "openstreetmap"
    }
  ]
}

Changes

No recorded changes to this operation across all 1 revision of this API.