Forge Component
Published on 26 Feb by Labs
22 votes
Published on 26 Feb by Labs

Would the CheckIfCoordinatesAreValid Client Action be possible to be wrong?

Because in first assign is validating if Latitude variable is between -90 and 90. In the second one would be Longitude varible, but the expression is

Longitude >= -180 and Latitude <= 180

Look at screenshot in attached.

Dear Maycon Silva,

The action is correct: 

"Decimal degrees (DD) express latitude and longitude geographic coordinates as decimal fractions and are used in many geographic information systems (GIS), web mappingapplications such as OpenStreetMap, and GPS devices. Decimal degrees are an alternative to using degrees, minutes, and seconds (DMS). As with latitude and longitude, the values are bounded by ±90° and ±180° respectively."

as you can check  :,


I agree with you, but I've referred about the expression in the IsValidLong assign that is

Longitude >= -180 and Latitude <= 180

and I think it'd be

Longitude >= -180 and Longitude <= 180

As reference on wikipedia: "As with latitude and longitude, the values are bounded by ±90° and ±180° respectively."

Latitude could not be higher the 90.

Then, the mistake is the highlight in red, at the first expression above in this post.