Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

We were planning to develop an application using Openlayers, which can display the incoming GPS signals as markers and create alerts , if the markers( positions) are outside a particular zone.

Is this possible through Openlayers code ? or do we have to use something JSTS Topology suite with Openlayers ?

share|improve this question
    
Please check following link github.com/santiago/geofencing –  Sunil Feb 18 '13 at 12:28
    
Displaying the markers seems like no problem. What do you need the alerts to do? That may be limited by what is achievable with Javascript in a typical browser setting. –  BradHards Feb 19 '13 at 9:28
add comment

1 Answer

Yes, it is possible. However you have a whole bunch of other issues to resolve. But it is possible with a simple intersects calculation of 2 geometries.

http://dev.openlayers.org/releases/OpenLayers-2.12/doc/apidocs/files/OpenLayers/Geometry/Polygon-js.html#OpenLayers.Geometry.Polygon.intersects

Overall, the problem I see with your approach is that it requires a client-side GUI and someone looking at it to trigger a geofencing alert. That should probably be done on the server side and sent out as email and/or made available to the client on some polled ajax request. But...what you asked for is possible.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.