belaeifert / Loadsmart-final-project

https://loadsmart-aceleradev.herokuapp.com/
1 stars 3 forks source link

Calculate the suggested price #12

Closed belaeifert closed 5 years ago

belaeifert commented 5 years ago

The price for a load should be $1.50 per mile and the Loadsmart’s margin should be 5% of the total value. For example:

If the total miles from pickup to delivery is 100 miles, the shipper should see the load cost as $150,00 and the carrier should see the value as $142.5 => $150,00 - $7.50 (margin).

Loadsmart would receive $150,00 from the Shipper; Loadsmart would pay $142.5 for the Carrier; Loadsmart would earn $7.50 in this transaction.

belaeifert commented 5 years ago

https://developers.google.com/maps/documentation/distance-matrix/intro https://www.youtube.com/watch?v=lusad8WirIc

belaeifert commented 5 years ago

https://developers.google.com/maps/documentation/javascript/distancematrix#GetStarted https://developers.google.com/maps/documentation/javascript/examples/distance-matrix https://bitbucket.org/webeasystep/calculate-distance-between-two-points-google-maps/src/0e41ca60f01e155bc0b99c89d349d931f3527fb8/calculator.html?at=master&fileviewer=file-view-default