Nice stuff.
The API might be more convenient if you could (also) call it like:
demo.speed();
Or even:
demo.speed;
with a
demo.set("$GPRMC,001225,A,2832.1834,N,08101.0536,W,12,25,251211,1.2,E,A*03");
For those who want to provide another sentence than provided during class instantation.
This way the editor will help you avoid asking by accident for fields that do not exist (e.g. "attitude" instead of "altitude" ;-))
My 2cts :-)
Yeah, sounds like a good idea.
using demo.set()developers would have a way to change the sentence after class instantation
Yes, i want to set gets/sets for retrieving information
demo.speed
demo.heading
...
Thank you :)
Yeah, Actually i developed something like this in my previous company.
It was a Cruise Ship company in portugal.
We received information from the built in GPS system and decoded into something we could display for our guests.
Location, speed, heading, etc..
So i decided to build a JS library out of it.
I have a lot of ideas to add