latlong.h 739 B

123456789101112131415161718192021222324
  1. /* latlong.h */
  2. /* Use this value for unknown latitude/longitude or other values. */
  3. #define G_UNKNOWN (-999999)
  4. void latitude_to_str (double dlat, int ambiguity, char *slat);
  5. void longitude_to_str (double dlong, int ambiguity, char *slong);
  6. void latitude_to_comp_str (double dlat, char *clat);
  7. void longitude_to_comp_str (double dlon, char *clon);
  8. void latitude_to_nmea (double dlat, char *slat, char *hemi);
  9. void longitude_to_nmea (double dlong, char *slong, char *hemi);
  10. double latitude_from_nmea (char *pstr, char *phemi);
  11. double longitude_from_nmea (char *pstr, char *phemi);
  12. double ll_distance_km (double lat1, double lon1, double lat2, double lon2);
  13. int ll_from_grid_square (char *maidenhead, double *dlat, double *dlon);