Build a GPS Routing API with Python Flask

Samir Saci
Nerd For Tech
Published in
5 min readMar 14, 2021

--

Create a free Distance Matrix API using Flask with a Selenium Bot deployed on Heroku

Build a GPS Routing API with Python Flask
(Image by Author)

Do you need to calculate distances for your transportation planning, but don’t want to break the bank on API costs?

In this article, we’ll show you how to build a GPS routing API using Python Flask and a Selenium bot that’s free to use and easy to set up.

With detailed instructions and code examples, you can create your own API and optimize your transportation planning without breaking the bank.

Introduction

My first project using GPS routing was 4 years ago. I wanted to optimize a transport plan for 1,200 truck deliveries/month covering 50 stores from a Cross-Docking platform.

I have built a Transportation Route Optimization tool using Excel-VBA — mainly for transport plan design using distance collected from Google Maps API.

This was my first experience using an API; Google Maps API was free with a limit of 10,000 requests per day.

💌 New articles straight in your inbox for free: Newsletter
📘 Your complete guide for Supply Chain Analytics: Analytics Cheat Sheet

What about now?

--

--

Samir Saci
Nerd For Tech

Top Supply Chain Analytics Writer — Follow my journey using Data Science for Supply Chain Sustainability 🌳 and Productivity ⌛