2

In my gps tracking system (PHP/MySql) I have got 5 Stops for a vehicle.

Whenever the bus reaches stop 1, the passengers at stop 2 should get an SMS alert. And in the same way for the sops followed by.

I have given stops as points. How can I determine whether the bus reached a particular stop? Should always monitor all 6 stop whether the bus reached once the trip is started? Can anybody give some idea?

(Map used: Google Map/Openlayers)

See the image.

Image showing 6 Bus Stops and start & stop points

  • This will have to be done by some server code. The Google Maps API/Openlayers code will run in Javascript on the client browser, and cannot send sms or other such alerts. – Devdatta Tengshe Jan 29 '14 at 11:25
  • Geofencing will be able to trigger an 'event' - using your red (buffer) circles as polygon. see developers.google.com/maps/documentation/tracks/… – Mapperz Jan 29 '14 at 14:43
  • Should check entry/exit for all 6 stops all the time since the start of the trip towards the end? Please share some logic. – mapsir Jan 31 '14 at 4:09
  • Is there any logical error in the question? – mapsir Feb 12 '14 at 16:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.