Skip to content

Commit

Permalink
Merge pull request #34 from Ameciclo/adaptacoes_garfo
Browse files Browse the repository at this point in the history
Adaptacoes garfo
  • Loading branch information
iacapuca authored Feb 7, 2024
2 parents 4ae6a39 + 357d4ea commit 96e85ee
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
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

0 comments on commit 96e85ee

Please sign in to comment.