Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

share|improve this question
I think Sending data via GeoJSON will be useful.. – Sunil Dec 5 '12 at 7:23

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...

share|improve this answer
GeoJSON requires less heavy parsing work from the browser than KML or GML. That can make a big difference. – underdark Dec 6 '12 at 13:49
this is an important point which @underdark have mentioned if you dont want to wrestle with hard coding. – Aragon Dec 6 '12 at 13:59

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)

share|improve this answer

Your Answer


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.