Personally, I used GeoNames for something like this, and not for Google.
With Geonames, you are likely to run into quota problems like Google, but there is a big difference ... Geonames allows you to upload different datasets so you can provide your own self-service geoservices ... without a quota.
I never had to do this, so you can advise you to jerk on the Geonames website for instructions.
Basically you need to:
- Download the US.zip dataset and install on the server (or localhost for development)
- Write a specialized (RESTful) webservice (for example, in PHP) that performs all transitions crossing the state line and returns a list of spaces in each state in JSON.
Performing a tough mathematical server part and returning the related results, you will need to make only one HTTP request (per company car).
Of course, the server will need the appropriate lat / lng path data, but from what you say in the question, which is already server-side, so there is no need to download it to the client to be resent in the request,
An interesting project. From the very beginning, you will need to think about your testing / verification strategy.
Sorry, I canβt help anymore, but maybe this gives you a way forward.
Beetroot-beetroot
source share