Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request - N/S W/E radio buttons next to Latitude/Longitude #32

Open
KM6IAU opened this issue Nov 12, 2021 · 0 comments
Open

Feature request - N/S W/E radio buttons next to Latitude/Longitude #32

KM6IAU opened this issue Nov 12, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@KM6IAU
Copy link

KM6IAU commented Nov 12, 2021

Every now and then a node with an American call sign pops up in China on the meshmap, because someone forgot to put the minus sign in front of the Longitude.

Putting in N/S W/E radio buttons might make this possible oversight more apparent to the user.

Something like this, in pseudocode:

if (lat < 0) {
    /* we can reasonable assume they meant S, 
       regardless of the radio button */
} else {
    /* it is possible the negative sign was forgotten */
}

if (lon < 0) {
    /* we can reasonable assume they meant W, 
       regardless of the radio button */
} else {
    /* it is possible the negative sign was forgotten */
}

if (radio_lat == "S") { 
    lat = abs(lat) * -1;
} else { 
    /* they either appropriately selected "N" or 
       appropriately entered a S lat with negative 
       number */
}

if (radio_lon == "W") { 
    lon = abs(lon) * -1;
} else { 
    /* they either appropriately selected "E" or 
       appropriately entered a W lon with negative 
       number */
}

Or more simply:

if (radio_lat == "S") { lat = abs(lat) * -1; }
if (radio_lon == "W") { lon = abs(lon) * -1; }
@dman776 dman776 added the enhancement New feature or request label Dec 11, 2021
@dman776 dman776 transferred this issue from aredn/aredn Apr 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants