Friday, 15 June 2012

validation - Validate given coordinates in C,C++ or Objective C -



validation - Validate given coordinates in C,C++ or Objective C -

i trying validate if given coordinates(latitude,longitude) valid. there function or should create own regular expression??

there no function nowadays in c/c++. it's not hard figure out if or not.

latitude , longitude represented degrees/minutes/seconds , preceded minus sign if south of equator or west of prime meridian. can check if input have adhere's these requirements. assuming input 3 floats - degrees, minutes , seconds.

degrees should in range of -90 +90 latitude , -180 +180 longitude. minutes , seconds should greater 0 , less 60.

here check out - http://msdn.microsoft.com/en-us/library/aa578799.aspx.

c++ validation expression coordinates

No comments:

Post a Comment