The curl hooked me for some reason...  Anyways, dug in a bit, and it seems
that the format is nil delimited objects, which have the acList field.  I
wrote a quick class which does what you want, and assuming they don't
change quoting on the actual json records, it should continue to work.  No
promises.

If you want a more continuous stream of position objects, you can add some
checks for the byte header of the payload.

https://gist.github.com/dansimpson/6e326b0e91fc72ac994347c0040d7221


On Tue, Feb 28, 2017 at 2:15 PM, Chris McCann <testflyj...@gmail.com> wrote:

> I'm looking into processing a stream of aircraft position data provided
> here:
>
> http://pub-vrs.adsbexchange.com:32005
>
> This effectively returns a JSON array of data structures with
> aircraft-reported information including latitude and longitude
> positioning.  There are typically about 6000-7000 "records" provided every
> 5 seconds.
>
> How does one parse a stream like this?  You can *curl *that endpoint and
> see the data, I just can't sort out how to process each record into a JSON
> object to then do other stuff with.
>
> I've tried Ruby, Python, and Elixir but haven't come up with a solution
> yet.  Anyone out there have experience parsing a stream like this?
>
> Cheers,
>
> Chris
>
> --
> --
> SD Ruby mailing list
> sdruby@googlegroups.com
> http://groups.google.com/group/sdruby
> ---
> You received this message because you are subscribed to the Google Groups
> "SD Ruby" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to sdruby+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
-- 
SD Ruby mailing list
sdruby@googlegroups.com
http://groups.google.com/group/sdruby
--- 
You received this message because you are subscribed to the Google Groups "SD 
Ruby" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sdruby+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to