NOC-MDP / issue-tracking--polpred_offshore

Public repository for the discussion of issues and improvements for the NOC's Polpred Offshore Web Application
0 stars 0 forks source link

Allow Data Table output to show location based on user input of Lat/Lon #4

Open androdnoc opened 4 years ago

androdnoc commented 4 years ago

Essentially, this can be done but may require a bit of extra work, may come down to how important of a feature we think this would be? For reference, POLPRED would always output in deg min sec dir (confirm?)

When showing meta information for Data Table output, the Lat/Lon values default to decimal degrees (-+):

image

These values are taken from the values given to the Polpred API, which are convert from the user's input within the input dialogs:

image

Both are converted to decimal degrees (+-) then passed to the API

The Lat/Lon position referenced in the API response is what is used when presenting the values in the Meta Information table.

In order for the user's prefered input format to be used as the output, the format used in the dialog would have to be tracked for each dialog and dialog type.

Feel free to discuss this further before any actions are made.

NOC-ColinBell commented 4 years ago

I would not worry too much about this. Output has always been in a single predefined format so I would stick with that for know (unless you thought it was a 2 line code fix which I doubt it will be). Single output format leads to consistency as well if we choose to do more with outputs in the future.