Main Menu
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - Testi

#1
Thank you! That is super inconvenient, I guess I'l lswitch back to BRouter for the time being. Thanks a lot for the reply, I would have never thought to look there ;)
#2
I often have no cell reception in the woods, so I would like to configure LoRouter Offline to download what I need. But when I went to its settings, all it offered was updates for an already configured area coverage, but it would not let me select which area I want it to download.

It can't know which area to download, because I haven't been there yet, so I am concerned that once I go there, I will be stuck without navigation/routing. How can I tell LoRouter Offline now that I need it to download a certain area ?

I've got the new Locus with Gold.
#3
My ticket was eventually resolved via a return of the spent money so that I can get the Gold Sub with it instead, so yay and thanks!
#4
Copy & Pasting a ticket I made here in case someone here knows what I can do:

QuoteI just purchased a bunch of maps in Locus 3 (of which I own Pro since forever) and right after found out about Locus 4. I would really like to 'return the maps' and instead get a Gold subscription (of course I understand that a Gold sub is more expensive than what I paid for the maps/coins). Is there any way to do that ? It would suck if it turns out I wasted all that money :(

I wish it had said that Locus 3 was deprecated when I bought the maps :(
#5
Hey, just got my mail, immediately installed it and all seems to be working well. I'm in the office so I can't try out much, but it looks like during recording, you can't see the map - that would be a shame. Maybe once recording starting, we could be sent back to the map screen, with a small button that goes to the recording interface ? By default, I think I would want to both look at the map and record my movements at the same time.
#6
Troubles & Questions / Audio feedback ?
June 22, 2014, 17:44:22
Hello,

one of the only reasons why I still have Runkeeper installed and don't use Locus for everything is because Runkeeper can be set to periodically say things like speed, total distance, etc. Is there a way to get Locus to do that ? Runkeeper kinda sucks compared to locus so I'd rather use Locus for jogging too.
#7
Nothing I could get to work so far. Will the validation need to happen on every start, or only the first start ? If it's just the once, maybe I could borrow some USB-Wifi-Stick or something of that sort to activate it.

ps.: I didn't even consider bluetooth, I'll have to look into that.
#8
Hello,

I am a happy Locus Pro owner, and I have recently been given a slightly broken device that has no internet access (but I can put stuff on it by putting in an SD card). Free apps I can just download the apk of and move it to the device, but obviously not paid apps. Since this device would be perfect for vacations (big display, good GPS, not a huge loss if broken/stolen since it's so damaged) I would like to put my Locus Pro on it somehow if that is possible.

Is there a way ? Like I said I legit own Locus Pro.
#9
Hey good Locus people,

I saw this come up in an unrelated discussion:

http://www.traccar.org/

Looks perfect to be used with Locus Pro's Live Tracking function. Since it's open source it's probably trivial to add too.

Just thought you guys might find it interesting, not asking for anyone to do anything with it.

Have fun!
#10
Here you can see what it does, before:



As you can see, I only put a point at the start of Rotsiefweg and at the end, since it's very straight. But it's 500m long, so at my setting to beep if you get more than 100m from the track, it would beep in between.

Here's the 'after':

#11
Here are my results from some experimenting:

I can't use the navigation function, because I plan hiking trips on dirt trails and such that are not navigable, and even if they were, I just want to pick routes on the maps, not generate routes. When drawing with Locus, it also doesn't make intermediate points on its own.

So I wrote a short little Java program to take a .KML file and just add points in the middle of long lines. Maybe someone else might want something like that, so here goes:

package com.boringville.misc.pointadder;

import java.io.File;
import java.io.FileNotFoundException;
import java.util.ArrayList;
import java.util.List;

import lombok.RequiredArgsConstructor;
import de.micromata.opengis.kml.v_2_2_0.Coordinate;
import de.micromata.opengis.kml.v_2_2_0.Document;
import de.micromata.opengis.kml.v_2_2_0.Feature;
import de.micromata.opengis.kml.v_2_2_0.Kml;
import de.micromata.opengis.kml.v_2_2_0.LineString;
import de.micromata.opengis.kml.v_2_2_0.Placemark;

public class PointAdder {
    @RequiredArgsConstructor
    private static class Distance {
        private final Coordinate first, last;

        /** Basically copied from http://stackoverflow.com/questions/837872 */
        public double calculate() {
            double dLat = Math.toRadians(last.getLatitude() - first.getLatitude());
            double dLng = Math.toRadians(last.getLongitude() - first.getLongitude());
            double a = Math.sin(dLat / 2) * Math.sin(dLat / 2)
                    + Math.cos(Math.toRadians(first.getLatitude()))
                    * Math.cos(Math.toRadians(last.getLatitude())) * Math.sin(dLng / 2)
                    * Math.sin(dLng / 2);
            double c = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1 - a));
            return c;
        }
    }

    public static void main(String[] args) {
        double earthRadius = 6369628.75D;
        double maxDistance = Double.parseDouble(args[0]) / earthRadius;
        Kml kml = Kml.unmarshal(new File(args[1]));
        Document document = (Document) kml.getFeature();
        for (Feature feature : document.getFeature()) {
            if (!(feature instanceof Placemark)) {
                continue;
            }
            Placemark placemark = (Placemark) feature;
            LineString ls = (LineString) placemark.getGeometry();
            List<Coordinate> inCoords = ls.getCoordinates();
            List<Coordinate> outCoords = new ArrayList<Coordinate>();
            Coordinate lastPoint = null;
            for (Coordinate coordinate : inCoords) {
                if (lastPoint != null) {
                    double distance = new Distance(lastPoint, coordinate).calculate();

                    if (distance > maxDistance) {
                        double steps = Math.ceil(distance / maxDistance);
                        double stepLong = (coordinate.getLongitude() - lastPoint.getLongitude())
                                / steps;
                        double stepLat = (coordinate.getLatitude() - lastPoint.getLatitude())
                                / steps;
                        for (int i = 0; i < steps; i++) {
                            outCoords.add(new Coordinate(lastPoint.getLongitude() + stepLong * i,
                                    lastPoint.getLatitude() + stepLat * i));
                        }
                    }
                }
                lastPoint = coordinate;
                outCoords.add(coordinate);
            }
            ls.setCoordinates(outCoords);
        }
        try {
            kml.marshal(new File(args[2]));
        } catch (final FileNotFoundException e) {
            e.printStackTrace();
        }
    }
}


And here is the neccessary pom.xml if you want to build it without fiddling with class paths and libraries:

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>com.boringville.misc</groupId>
<artifactId>pointadder</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>jar</packaging>

<name>pointadder</name>
<url>http://maven.apache.org</url>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>

<dependencies>
<dependency>
<groupId>de.micromata.jak</groupId>
<artifactId>JavaAPIforKml</artifactId>
<version>2.2.0</version>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.12.4</version>
</dependency>
</dependencies>
</project>


I don't really understand licenses but everyone is free to do whatever they want with the code as long as they don't try to hold me accountable for blowing up their computers ;)

Ooops almost forgot, you use it by doing "java PointAdder 50 in.kml out.kml" where in.kml is the Google Earth or whatever generated one and out.kml is the name of the resulting file. 50 is the maximum distance in meters that you want between two points.
#12
I have a powerful desktop computer and a gigantic monitor, so at home I tend to not use my phone for anything, but I will try a few different ways to do it tomorrow.
#13
Geez, I didn't mean to imply any fault on Locus' part or to start a fight!

My tracks don't have many points because it's planned routes I click together in Google Earth, but I'm sure I can find a way to make it generate intermediate points. Lots of sun in the forecast for Sunday, so I'll find out then!
#14
Very cleverly hidden! Thank you, that looks exactly like what I was hoping for! I would have never found that on my own lol. I will report back after trying it. What will happen if I set it to beep at 250m, and I am between 2 points that are 1000m apart ? Will it understand that I'm still close to the 'line' ?
#15
I tried it again today with the low point course I had and I got a single beep when I veered off course, and nothing after that. Also no way to configure that behaviour. If I somehow missed that beep, it could have taken forever for me to notice I wasn't on course anymore :(