How to obtain, based on an origin and destination, the nearest bus route?

I'm doing an app on Android Studio about bus routes in my city, and it's a function I'd like to include. But I've looked for how to do it, and I have not found anything that comes close.

I have bus routes in a .JSON file (lat and long) which are plotted on Maps. Those routes I want to use them for when the user selects a destination, the application tells him which bus route is closest. Do you recommend using SQL to store the routes and make queries, or not? Any related comment, is welcome. Thank you.

#java #google-maps #android

5 Likes1.45 GEEK