iitc-project / ingress-intel-total-conversion

ingress.com/intel total conversion user script with some new features. Should allow easier extension of the intel map.
http://iitc.jonatkins.com/
ISC License
991 stars 553 forks source link

Integrated route planner #525

Open jonatkins opened 11 years ago

jonatkins commented 11 years ago

A suggestion based on a discussion in the community - https://plus.google.com/104076885477665565449/posts/dtrFG3Jxn3Q

An IITC plugin to assist with planning routes around a set of portals.

Using the Google Directions API - https://developers.google.com/maps/documentation/directions/ - we could

  1. Drop a set of waypoints onto the map
  2. Use the API to calculate the route, and draw it on the map
  3. Highlight portals within hacking range of the route.
  4. Display a summary of the route - journey time, distance. Possibly full directions list?

Options can be provided to

jonatkins commented 11 years ago

The polylines in the results are encoded. The encoding is documented here: https://developers.google.com/maps/documentation/utilities/polylinealgorithm?csw=1

ghost commented 10 years ago

a first iteration could be the poor mans version...

  1. when less than some reasonable number of portals is showing, link is added to toolbox, "Waypoints for current view"
  2. when user clicks that link, it could choose a random portal in the view and build a list of portals' lat/long
  3. then just concatenate all the links into the url.
  4. it'll probably make crazy directions....

For example

but in the next iteration you could do some way to find shortest path to visit every node.

umer936 commented 10 years ago

I have created the "poor man's version" and sent in a pull request here https://github.com/jonatkins/ingress-intel-total-conversion/pull/851.