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

updated coordinates #176

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

GhostOf0days
Copy link
Member

@GhostOf0days GhostOf0days requested a review from cirex-web March 3, 2025 09:06
Copy link

vercel bot commented Mar 3, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
dining-api ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 4, 2025 7:50am

Copy link
Collaborator

@cirex-web cirex-web left a comment

Choose a reason for hiding this comment

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

thanks! reviewed

coordinates: { lat: 40.444107, lng: -79.942206 },
coordinates: { lat: 40.44392022644891, lng: -79.94220130436851 },
Copy link
Collaborator

Choose a reason for hiding this comment

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

maybe we can make two tests, one with location overwrites and one without, so we can test both scraping functionality and overwrite functionality. (probably will need to set some global flag somewhere)

Comment on lines +33 to +34
const parsedLocationData = await parser.process();
expect(parsedLocationData).toStrictEqual(expectedLocationData);
Copy link
Collaborator

Choose a reason for hiding this comment

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

fair

Comment on lines +7 to +14
const locationCoordinates = new Map<number, ICoordinate>(
Object.entries(locationCoordinateOverwrites).map(([conceptIdString, coordinates]) => {
const conceptId = parseInt(conceptIdString, 10);
return [conceptId, { lat: coordinates.labelLatitude, lng: coordinates.labelLongitude }];
})
);

export default locationCoordinates;
Copy link
Collaborator

Choose a reason for hiding this comment

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

why do we need this intermediate step of converting locationCoordinateOverwrites to a locationCoordinates map?

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.

Fix location coords [Bug]
2 participants