0

O'm working on an app for bus transit and route. I'm currently using dijkstra algorithm to find the shortest way from bus stop A to bus stop B, but it's still limited between bus stops. Is it possible to use google places API? for example, I put coffee shop x near bus stop A as starting point and shopping mall y near bus stop B as destination then the app calculates the shortest route from bus stop A to bus stop B

Phantômaxx
  • 37,901
  • 21
  • 84
  • 115
  • 1
    https://developers.google.com/maps/documentation/distance-matrix/intro – Atef Hares Mar 27 '17 at 18:45
  • 1
    use google place distance API . it give you always short path . https://developers.google.com/maps/documentation/distance-matrix/intro – Harshil Kotecha Mar 29 '17 at 17:14
  • @HarshilKotecha do you mean that there's no need to make an own implementation of Dijkstra's algorithm?. I'm currently working on a very similar project but I haven't used google api's too much. – Sandoval0992 Apr 29 '17 at 18:08
  • @Sandoval0992 yes in Google place api no need to use Dijkstra's alogrithm . Just give destination and current location lat long. It's give all possible path in Json format array dictionary.In index [0] you can get sorted path – Harshil Kotecha Apr 29 '17 at 20:58
  • Is there anyway to use the google api distance matrix api and implement it on Dijkstra's Algorithm ? – Andrew Jerome Bernard Nov 26 '17 at 12:10
  • I am working on the same kind project, may you please give me an idea how you worked on it.It would be really helpful.Thanks in advance – Naveen Nov 28 '19 at 10:48

0 Answers0