validar-geolocalizacao-poi

Validate and normalize GPS coordinates for Portugal Vivo POIs using geopandas and shapely.

1|Updated Jan 26, 2026
One-click install
npx skills add https://github.com/tiagob77-coder/Portugal-Vivo --skill validar-geolocalizacao-poi
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: validar-geolocalizacao-poi
Source: https://github.com/tiagob77-coder/Portugal-Vivo/tree/main/skills/validar-geolocalizacao-poi
Command: npx skills add https://github.com/tiagob77-coder/Portugal-Vivo --skill validar-geolocalizacao-poi

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires shapely, geopandas, and includes scripts (resource) and references (resource) components.

What problem does it solve?

Este Skill garante que as coordenadas GPS dos POIs do Portugal Vivo sejam válidas, coerentes e normalizadas, evitando erros de geolocalização que prejudicam o mapeamento, busca e enriquecimento de dados.

Core Features & Use Cases

  • Normalização automática de latitude/longitude e correção de formatos (ponto decimal)
  • Correção de inversão lat/lon e remoção de coordenadas inválidas como (0,0)
  • Validação contra os limites geográficos de Portugal Continental, Açores e Madeira (usando limites_portugal.geojson)
  • Opção de reverse geocoding local para confirmar concelho/distrito
  • Processamento via script scripts/validar_geo.py
  • Gera POI normalizado no formato oficial do Portugal Vivo, com metadados de validação

Quick Start

Run the validar_geo.py script to process POIs and output corrected coordinates with validation data

Frequently Asked Questions about validar-geolocalizacao-poi

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I validate GPS coordinates for POIs in Portugal using Python?

You can validate GPS coordinates by running a Python script that uses geopandas and shapely to check points against a Portugal boundary GeoJSON. This ensures coordinates fall within Continental Portugal, the Azores, and Madeira.

What is the best way to normalize decimal formatting and fix swapped latitude and longitude in geospatial data?

Normalizing decimal formatting and fixing swapped latitude/longitude values is achieved by processing geospatial data through a dedicated validation script. It automatically corrects decimal points, resolves inverted coordinates, and removes invalid entries like (0,0).

Does geopandas support boundary checks for the Azores and Madeira?

Yes, geopandas supports boundary checks for the Azores and Madeira when paired with a comprehensive GeoJSON file containing the geographical limits of Portugal. The script performs spatial joins to verify if coordinates reside within these specific regional polygons.

How do I clean POI data and remove invalid coordinates like (0,0)?

To clean POI data and remove invalid coordinates like (0,0), you process the dataset through a geospatial validation script. This script filters out null or zero-valued points and flags entries that fail geographical boundary validation.

Can I perform reverse geocoding locally to confirm the concelho or distrito of a POI?

Yes, you can perform reverse geocoding locally to confirm the concelho or distrito of a POI. The validation process includes an option to cross-reference normalized coordinates against local boundary data, verifying the administrative region without external APIs.