Skip to main content
Omnitracs Knowledge Base

Convert Degrees, Minutes, Seconds to Seconds - OMCDMSS

Convert Degrees, Minutes, Seconds to Seconds (OMCDMSS)

Required Parameter Group:

1 Latitude in Signed Seconds Output Packed(7,0)
2 Latitude in Deg, Min, Sec Input Char(7)
3 Longitude in Signed Seconds Output Packed(7,0)
4 Longitude in Deg, Min, Sec Input Char(8)

API Overview:
The Convert Degrees, Minutes, Seconds to Seconds API (OMCDMSS) is used to convert latitude and longitude expressed in degrees, minutes, and seconds to latitude and longitude expressed in total signed seconds.

Required Parameter Group Details:
(1) Latitude in Signed Seconds
OUTPUT; PACKED(7,0)
This parameter returns the latitude in total signed seconds. Latitudes in the southern hemisphere are returned as negative values. Latitudes in the northern hemisphere are returned as positive values.

(2) Latitude in Deg, Min, Sec
INPUT; CHAR(7)
This parameter is a fixed format data structure that contains the latitude in degrees, minutes, seconds format. See the shaded table below for the data structure format.

1-2 Latitude Degrees Zoned(2)
3-4 Latitude Minutes Zoned(2)
5-6 Latitude Seconds Zoned(2)
7-7 Latitude Hemisphere
N Northern
hemisphere
S Southern hemisphere
Char(1)

(3) Longitude in Signed Seconds
OUTPUT; PACKED(7,0)
This parameter returns the longitude in total signed seconds. Longitudes in the eastern hemisphere are returned as negative values. Longitudes in the western hemisphere are returned as positive values.

(4) Longitude in Deg, Min, Sec
INPUT; CHAR(8)
This parameter is a fixed format data structure that contains the longitude in degrees, minutes, seconds format. See the shaded table below for the data structure format.

1-3 Longitude Degrees Zoned(3)
4-5 Longitude Minutes Zoned(2)
6-7 Longitude Seconds Zoned(2)
8-8 Longitude Hemisphere
W Western hemisphere
E Eastern hemisphere
Char(1)
  • Was this article helpful?