Skip to content

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

@KM6IAU

Description

@KM6IAU

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; }

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions