Skip to content

DA-2: Create a output Json Spec with what this calculator is going to take. #3

@UchuuJ

Description

@UchuuJ

So I'm assuming the output is going to look like the following:

user_id: int,
number_of_drop_offs:  int
total_distance: float (rounded to 2. S.F)
cost_per_mile: float
total_price: float
extra_person_price: float
extra_person_count: int
calculation_created_at:datetime

This could look like:

{
 user_id: 1,
 number_of_drop_offs: 3
 total_distance: 420
 cost_per_mile: 1.0
 extra_person_price: 15 
 extra_person_count: 1
 total_price: 435
 calculation_created_at: 2025/04/08 04:00:00
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions