You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when querying for nearest bus - we want to return the direction of the bus as well as buses that are coming to this stop and not output buses that have already passed this stop
The text was updated successfully, but these errors were encountered:
vr00n
changed the title
nearest bus near me
nearest bus near me - direction
Mar 24, 2019
Option 2 : Use google computeHeading (not a service though)
You just can use the google maps computeHeading:
var point1 = new google.maps.LatLng(lat1, lng1);
var point2 = new google.maps.LatLng(lat2, lng2);
var heading = google.maps.geometry.spherical.computeHeading(point1,point2);
when querying for nearest bus - we want to return the direction of the bus as well as buses that are coming to this stop and not output buses that have already passed this stop
The text was updated successfully, but these errors were encountered: