5

i'm would like to display GPS traces (not only a position) in realtime on OpenLayers. What is the most efficient way to do it? Sending KML or GPX files to browser or sending data via GeoJSON?

br d

2

2 Answers 2

4

check out this map animation example SBB Network Simulator. I think that's pretty good for your needs. as @Sunil pointed out that GeoJSON would help you for huge datas. actually i dont think that geojson or kml make problem for you but browser restrictions. all your format which you havee mentioned that data interchangable format for mapping issues which are widely used by gis people.

enter image description here

i hope it helps you...

2
  • 2
    GeoJSON requires less heavy parsing work from the browser than KML or GML. That can make a big difference.
    – underdark
    Commented Dec 6, 2012 at 13:49
  • this is an important point which @underdark have mentioned if you dont want to wrestle with hard coding.
    – urcm
    Commented Dec 6, 2012 at 13:59
0

It really doesn't matter, the transport payload will be the same, rendering will have to suffer according with the method you will choose. I would go for straigh rendering via OL and if the trace becomes too complicated, I would simplify it (with Douglas–Peucker algorithm for example)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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