Peru district geography codebook
https://api.latinfo.dev/pe/inei/ubigeo/{code}
A district code and administrative hierarchy with reference coordinates. Use the six-digit UBIGEO district code. Preserve leading zeros. Coordinates locate the district reference point, not a company establishment.
Contrato da fonte
- Publicador
- INEI; augmented codebook by Jose M. Castagnetto
- Cobertura
- Peruvian districts in the augmented UBIGEO codebook.
- Significado do registro
- A district code and administrative hierarchy with reference coordinates.
- Identificador
- Use the six-digit UBIGEO district code. Preserve leading zeros.
- Padrão aceito
^\d{6}$- Quantidade de registros
one- Licença
- A permissão de reutilização não foi verificada. Acesso público não equivale a uma licença de reutilização.
Limitações conhecidas
- Coordinates locate the district reference point, not a company establishment.
Parâmetros
codestringpathobrigatórioUse the six-digit UBIGEO district code. Preserve leading zeros.
Example: 130101
Exemplo de requisição
curl https://api.latinfo.dev/pe/inei/ubigeo/130101 \
-H "Authorization: Bearer $LATINFO_API_KEY"
Respostas
200Codebook entry; values and identifiers remain strings.
application/jsonCampos da resposta
ubigeo string obrigatóriodepartamento string obrigatórioPublished department name.
provincia string obrigatórioPublished province name.
distrito string obrigatórioPublished district name.
latitude string obrigatórioDistrict reference latitude; not the company coordinates.
longitude string obrigatórioDistrict reference longitude; not the company coordinates.
Esquema de resposta
{
"type": "object",
"required": [
"ubigeo",
"departamento",
"provincia",
"distrito",
"latitude",
"longitude"
],
"additionalProperties": false,
"properties": {
"ubigeo": {
"type": "string"
},
"departamento": {
"type": "string",
"description": "Published department name."
},
"provincia": {
"type": "string",
"description": "Published province name."
},
"distrito": {
"type": "string",
"description": "Published district name."
},
"latitude": {
"type": "string",
"description": "District reference latitude; not the company coordinates."
},
"longitude": {
"type": "string",
"description": "District reference longitude; not the company coordinates."
}
}
}400Invalid code format
401Chave de api ausente ou inválida
404Code not in this reference snapshot
429Request limit exceeded
503Reference source unavailable
Exemplo JSON
Exemplo ilustrativo do esquema. Não é uma resposta ao vivo.
{
"ubigeo": "string",
"departamento": "string",
"provincia": "string",
"distrito": "string",
"latitude": "string",
"longitude": "string"
}Procedência e limitações
A cobertura varia por país e fonte pública. Um campo ausente não comprova que o fato não exista. Os registros públicos podem ter atrasos ou erros; revise as evidências e a data da fonte antes de usar um resultado.