I have a geojson file containing multiple points. When using the Google Maps JS API v3 for routing between these points, I am receiving an OVER_QUERY_LIMIT error due to making too many requests at once.
Currently, I have managed to address this issue by delaying my routing requests. However, this is not a sustainable solution as it significantly slows down the process of drawing the complete route.
My goal is to implement a caching system for the routes. The cache would only need to be invalidated when the geojson file is updated, which typically occurs once a week.
Since it is a static site hosted on GitHub project pages, all the client-side logic is written in JavaScript. I am unsure if Jekyll (a tool for GitHub pages) or a Travis-CI script could help in implementing this caching feature. Any suggestions?
EDIT: To clarify, I only require caching of the polyline to draw the route. I do not need detailed driving directions or the ability to edit the route via drag-and-drop.