5/20/2023 0 Comments Easy .gpx editor![]() It renders a file input and calls the onFileSelected callback when a file gets selected. Type Props = Ĭheck out the ChooseFile component as an example. It also acts as the glue-code between user interaction and the machine: Depending on the current state, it will render the appropriate component. The user interface reacts to the state machine’s transitions. Side-effects may also cause transitions e.g. It holds all of the application’s state, it transitions based on user interaction and performs side-effects when necessary. The diagram above shows the application architecture. I was especially curious to see if parcel really required zero configuration (spoiler: It really did not need any configuration □). Previously I had pretty much exclusively used webpack and I was in the mood for trying out something new. The last new building-block of my setup was parcel. ![]() For the rendering I wanted to use list-html which is tiny and super easy-to-use templating library. Due to my previous experience with XState I wanted to use it to drive the business logic of the editor. I was also interested in trying out a new kind of app setup. In the case of this small editor it did feel like overkill. My usual approach to building a small app like that would be to spin up create-react-app and code away. They are using topology data that is a more accurate than my phone’s recording. The cool thing about komoot is that they add the elevation info to your route if you don’t provide any. At least in my case and on my current phone.This in turn means that when I upload the recording to a tour website like komoot the stats can be quite off and people that use my GPS recording might take wrong turns due to the inaccurate GPS □.įor that reason I built a GPX editor which allows me to adjust the recorded points and strip out the elevation values. This sometimes results in inaccurate readings of elevation and GPS locations. The app is requesting a GPS fix at certain points in an interval and disables GPS in-between recordings. This resolution is accurate enough for recordings of walks and it does not add too much strain on my battery. I usually set the interval to somewhere between 45 seconds and a minute. The app let’s me define custom intervals at which it records a GPS point. Battery-efficiency is important because there’s often no possibility to charge my phone on a multi-day hike. You can also use other tools to open a GPX file, such as GPX Editor, EasyGPS, GPXSee, and GpsPrune.When I go hiking, I usually record the trip with this battery-efficient GPS Logger app □.
0 Comments
Leave a Reply. |