Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adaptacoes garfo #34

Merged
merged 4 commits into from
Feb 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
4 changes: 2 additions & 2 deletions app/contagens/configuration.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ export const colors = ["#24CBE5", "#E02F31", "#DDDF00", "#6AF9C4"];


export const allCountsStatistics = (summaryData) => {
const { total, number_counts, where_max_count, different_counts_points } = {
const { total_cyclists , number_counts, where_max_count, different_counts_points } = {
...summaryData,
};
return [
{
title: "Total de ciclistas",
value: IntlNumber(total),
value: IntlNumber(total_cyclists),
},
{
title: "Contagens Realizadas",
Expand Down
14 changes: 7 additions & 7 deletions servers.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ export const IDECICLO_STRUCTURES_DATA = `https://api.ideciclo.ameciclo.org/struc
export const IDECICLO_FORMS_DATA = `https://api.ideciclo.ameciclo.org/forms`
export const PERFIL_DATA = `https://api.perfil.ameciclo.org/v1/cyclist-profile/summary/`

export const COUNTINGS_SUMMARY_DATA =`http://135.148.32.138:8080/cyclist-counts`
export const COUNTINGS_DATA =`http://135.148.32.138:8080/cyclist-counts/edition`
export const COUNTINGS_SUMMARY_DATA =`http://api.garfo.ameciclo.org/cyclist-counts`
export const COUNTINGS_DATA =`http://api.garfo.ameciclo.org/cyclist-counts/edition`

export const OBSERVATORY_DATA =`http://135.148.32.138:8080/cyclist-infra/relationsByCity`
export const OBSERVATORY_DATA_WAYS =`http://135.148.32.138:8080/cyclist-infra/ways`
export const OBSERVATORY_DATA_ALL_WAYS = `http://135.148.32.138:8080/cyclist-infra/ways/all-ways`
export const OBSERVATORY_DATA_WAYS_SUMMARY =`http://135.148.32.138:8080/cyclist-infra/ways/summary`
export const CITIES_DATA =`http://135.148.32.138:8080/cities`
export const OBSERVATORY_DATA =`http://api.garfo.ameciclo.org/cyclist-infra/relationsByCity`
export const OBSERVATORY_DATA_WAYS =`http://api.garfo.ameciclo.org/cyclist-infra/ways`
export const OBSERVATORY_DATA_ALL_WAYS = `http://api.garfo.ameciclo.org/cyclist-infra/ways/all-ways`
export const OBSERVATORY_DATA_WAYS_SUMMARY =`http://api.garfo.ameciclo.org/cyclist-infra/ways/summary`
export const CITIES_DATA =`http://api.garfo.ameciclo.org/cities`
2 changes: 1 addition & 1 deletion typings.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export interface CountEditionSummary {
total_ride: number;
total_service: number;
total_shared_bike: number;
total_sidewalk: number;
total_sidewalk: number;
total_women: number;
total_wrong_way: number;
}
Expand Down
Loading