By any chance, will the software be developed for Packers & Movers related or any other?- Please share the details with me.
Hopefully, I have already design and build few packers and movers website in custom Php.
To calculate fare as per distance in Php, there are various ways:
->> I can use Google Distance Matrix API v2. In this API, there will be pre defined fare. Like From 0-10km= $55 (fixed Price) + service tax percentage; For 10km= $70 + Service Tax percentage etc.
Also there be the logical fare calculation based on per km concept. Like 20km=(20km X $2) + Service Tax.
->> Also I can go for Google Maps API V3.
I need to apply session_start () function for this. Under this function, there will be variables like $rate, $extra, $ fix, $above, $next, $ min & $cons etc.
Now the user will submit Source location & destination location. It will calculate the latitude and longitude from google map and calculate the distance as per latitude & longitude distance value. And as already the fare chart is uploaded, it will calculate the price as well.
But there is a limitation of Hitting the map using the API. Per day,it will provide 2,500 hitting. If you need more limitation of hitting, you need to purchase the subscription. Regarding the subscription, if you need any help from me, I can guide you.
Anyway, please open your PMB and message me on your convenience. I need to discuss the further details with you. Hoping to have your response - I will not waste your time.