8000 Add POIs to accessibility map by GabrielBruno24 · Pull Request #1406 · chairemobilite/transition · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add POIs to accessibility map #1406

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

GabrielBruno24
Copy link
Collaborator

If POIs are imported in the database from open street map, the accessibility map stats will now fetch that data from the db and display the number of POIs in the accessibility polygon, as well as their categories. Fix: #1404

image

@GabrielBruno24 GabrielBruno24 requested a review from Copilot June 23, 2025 18:35
Copilot

This comment was marked as resolved.

@GabrielBruno24 GabrielBruno24 force-pushed the addPOIsToAccessibilityMaps branch from ca5df6c to 3cf5de5 Compare June 23, 2025 19:25
@GabrielBruno24 GabrielBruno24 requested a review from Copilot June 23, 2025 19:25
Copilot

This comment was marked as resolved.

@GabrielBruno24 GabrielBruno24 force-pushed the addPOIsToAccessibilityMaps branch from 3cf5de5 to 4fe83c7 Compare June 23, 2025 19:42
@GabrielBruno24 GabrielBruno24 marked this pull request as ready for review June 23, 2025 19:46
If POIs are imported in the database from open street map, the accessibility map stats will now fetch that data from the db and display the number of POIs in the accessibility polygon, as well as their categories.
Fix: chairemobilite#1404
@GabrielBruno24 GabrielBruno24 force-pushed the addPOIsToAccessibilityMaps branch from 4fe83c7 to 9f3983e Compare June 25, 2025 17:38
Copy link
Collaborator
@tahini tahini left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

More tests required

accessiblePlacesCountByDetailedCategory: { [key in PlaceDetailedCategory]: number };
}> => {
try {
const accessiblePlacesCountByCategory = categories.reduce(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ça prendrait des tests séquentiels pour cette fonction dans places.db.queries.test.ts. Il est important que toutes les fonctions BD soient bien testées de façon relativement exhaustive.

@@ -165,6 +188,7 @@ describe('Test accessibility map with results', () => {
}
};
mockedNodesDbCollection.mockResolvedValue({ type: 'FeatureCollection', features: [ node1, node2, node3 ] });
mockedPlacesPOIsCount.mockResolvedValue({accessiblePlacesCountByCategory, accessiblePlacesCountByDetailedCategory})
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tu ajoutes un mock avec une valeur resolved, mais il n'y a pas de tests qui l'utilise. Il faudrati valider que la fonction a été appelée avec les bonnes valeurs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Calculer et afficher POIs acessibles
2 participants
0