Skip to content

feat(pricing): implement tool for travelling fee calc #11

@csalinas-dev

Description

@csalinas-dev

Using the Google Places API, allow a user to search for a place (city, address, business, etc...) using an autocomplete input. When the user submits the form, calculate the driving distance from Albuquerque, NM to the selected location using the Google Distance Matrix API.

Calculate the fee by dividing the distance by 50, removing the remainder, and multiplying by the fee per 50 miles.

fee = Math.floor(miles / 50) * $75

Ex:

Math.floor(162 / 50) => 3
3 * $75 = $225

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions