Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
774f165
feat(emergency-calls): pool, RMR, cidade nomes, validos detalhado, ca…
dvalenca May 20, 2026
18ad42b
feat(emergency-calls): normalize profiles endpoint, fix route order, …
dvalenca May 20, 2026
ecd905e
fix(traffic-deaths): corrige v1 endpoints com dados reais, matriz de …
dvalenca May 21, 2026
1b9f185
feat(traffic-deaths): add transportMode filter to causas-secundarias …
dvalenca May 21, 2026
775989b
feat(cycling-infra): remove ciclomapa, fix city_ids via IBGE boundari…
dvalenca May 22, 2026
93217d0
fix(cycling-infra): atribuir city_id via point-in-polygon para 5 cida…
dvalenca May 22, 2026
d02e368
feat(emergency-calls): enrich unsafe-streets/v1-streets endpoints wit…
dvalenca May 22, 2026
0da4865
fix(emergency-calls): add pcr_street_id FK, fix summary performance a…
dvalenca May 22, 2026
c826391
fix(emergency-calls): group concentration/geojson by pcr_address inst…
dvalenca May 22, 2026
d4ac948
refactor(unsafe-streets): use pcr_street_id FK instead of fuzzy name …
dvalenca May 22, 2026
2ce3efb
feat(emergency-calls): add v2 streets/history endpoint using pcr_stre…
dvalenca May 22, 2026
6bcad56
feat(cyclist-profile): add cross-tabulation API with dictionary, cate…
dvalenca May 22, 2026
6ca5e76
fix(emergency-calls): use ILIKE for gender matching (Masculino/Femini…
dvalenca May 22, 2026
fa074dc
fix(emergency-calls): add motivo_desf_cat to v1/streets/search response
dvalenca May 22, 2026
005020d
feat(emergency-calls): add accidents_by_category to GeoJSON, default …
dvalenca May 22, 2026
298f510
feat(cyclist-profile): add min_interviews query param (default 30) to…
dvalenca May 23, 2026
c5d9bcd
feat(traffic-violations): dashboard API, remove mocks, fix db connection
dvalenca May 23, 2026
c3694a2
feat(traffic-violations): adiciona tabela violation_categories com cl…
dvalenca May 23, 2026
24e0dcc
feat(traffic-violations): add law_codes_count to overview endpoint
dvalenca May 23, 2026
0216509
feat(traffic-violations): add by_year to /dashboard/temporal endpoint
dvalenca May 23, 2026
c3cbda6
feat(traffic-violations): add /dashboard/geojson endpoint and top_vio…
dvalenca May 23, 2026
cf1ec25
feat(traffic-violations): seed pipeline, query helpers, ETL, categori…
dvalenca May 31, 2026
d5eb9f9
feat(traffic-violations): rebuild ETL, location dict, infraction cata…
dvalenca Jun 1, 2026
c8121af
feat: consolidate schema, seeds, migrations, and APIs across apps
dvalenca Jun 4, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ node_modules

# Testing
coverage
temp-ciclomapa

# Turbo
.turbo
Expand Down
15 changes: 8 additions & 7 deletions apps/ciclodados/src/routes/nearby/nearby.handlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -191,20 +191,21 @@ export const nearbyHandler: RouteHandler<typeof nearbyRoute> = async (c) => {
// 6. Infraestrutura cicloviária existente (agrupada)
const existingInfra = await db.execute(sql`
SELECT
infra_type as type,
COALESCE(name, 'Sem nome') as name,
prw.osm_properties->>'cycleway_typology' as type,
COALESCE(prw.name, 'Sem nome') as name,
MIN(ST_Distance(
ST_Point(${lng}, ${lat})::geography,
coordinates::geography
prw.coordinates::geography
)) as distance_meters,
COUNT(*) as segments
FROM ciclomapa_infra
WHERE ST_DWithin(
FROM pdc_relation_ways prw
WHERE (prw.osm_properties->>'has_cycleway')::boolean = true
AND ST_DWithin(
ST_Point(${lng}, ${lat})::geography,
coordinates::geography,
prw.coordinates::geography,
${radiusConfig.cycling_infra}
)
GROUP BY infra_type, COALESCE(name, 'Sem nome')
GROUP BY prw.osm_properties->>'cycleway_typology', COALESCE(prw.name, 'Sem nome')
ORDER BY distance_meters
LIMIT 5
`);
Expand Down
2 changes: 1 addition & 1 deletion apps/cycling-infra/src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import waysRoutes from "./routes/ways/index.js";

const app = createApp()
.route("/", healthRoutes)
.route("/", infrastructureRoutes)
.route("/", summaryRoutes)
.route("/", infrastructureRoutes)
.route("/", relationsRoutes)
.route("/", waysRoutes);

Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading
Loading