Next / Previous / Contents / Shipman's homepage

6.10. parseLat(): Parse latitude

This function parses a latitude string in the form described in Section 4.3, “Specifying latitude and longitude on command lines”.

parseLat(s)

If the argument s is a valid latitude string in degrees, it is returned as a signed value in radians in the interval [-π, π]. It will raise a SyntaxError if s does not have the correct format.