-
Notifications
You must be signed in to change notification settings - Fork 12
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
base: main
Are you sure you want to change the base?
updated coordinates #176
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this 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 }, |
There was a problem hiding this comment.
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)
const parsedLocationData = await parser.process(); | ||
expect(parsedLocationData).toStrictEqual(expectedLocationData); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fair
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; |
There was a problem hiding this comment.
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?
Closes ScottyLabs/cmueats#563