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

Add Blacklisting API #142

Merged
merged 35 commits into from
Sep 19, 2024
Merged

Add Blacklisting API #142

merged 35 commits into from
Sep 19, 2024

Conversation

nilspenzel
Copy link
Contributor

Enables fast checking of some necessary conditions for the
viability of new Tours.

nils_penzel added 2 commits September 5, 2024 11:08
	Enables fast checking of some necessary conditions for new the
	viability of new Tours.
@nilspenzel nilspenzel marked this pull request as draft September 5, 2024 09:12
Comment on lines 19 to 30
return json(
{
body: JSON.stringify(
getViableBusStops(
parameters.userChosen,
parameters.busStops,
parameters.startFixed,
parameters.capacities
)
)
},
{ status: 200 }
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
return json(
{
body: JSON.stringify(
getViableBusStops(
parameters.userChosen,
parameters.busStops,
parameters.startFixed,
parameters.capacities
)
)
},
{ status: 200 }
return json(
getViableBusStops(
parameters.userChosen,
parameters.busStops,
parameters.startFixed,
parameters.capacities
)

Copy link
Member

Choose a reason for hiding this comment

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

ginge das auch so?

src/routes/api/blacklisting/viableBusStops.ts Show resolved Hide resolved
startFixed ? t : new Date(t.getTime() - MAX_PASSENGER_WAITING_TIME_DROPOFF),
startFixed ? new Date(t.getTime() + MAX_PASSENGER_WAITING_TIME_PICKUP) : t
);
new Date(times[j]);
Copy link
Member

Choose a reason for hiding this comment

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

?

@nilspenzel nilspenzel marked this pull request as ready for review September 19, 2024 11:46
import type { Capacities } from './capacities';
import type { Coordinates } from './location';

export type BookingRequestParameters = {
Copy link
Contributor

Choose a reason for hiding this comment

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

BlacklistingRequestParameters ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ich gehe aktuell davon aus, dass das Whiteling Parameter nach dem selben Schema Parameter annehmen wird.
Daher würde ich erstmal bei der allgemeineren Version bleiben.

@nilspenzel nilspenzel merged commit 4ef43f3 into master Sep 19, 2024
2 checks passed
@nilspenzel nilspenzel deleted the blacklist branch September 19, 2024 15:38
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.

3 participants