File: latlong.h

package info (click to toggle)
direwolf 1.4%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 4,376 kB
  • ctags: 3,887
  • sloc: ansic: 48,436; sh: 180; perl: 170; makefile: 28; python: 11
file content (24 lines) | stat: -rw-r--r-- 739 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24

/* latlong.h */


/* Use this value for unknown latitude/longitude or other values. */

#define G_UNKNOWN (-999999)


void latitude_to_str (double dlat, int ambiguity, char *slat);
void longitude_to_str (double dlong, int ambiguity, char *slong);

void latitude_to_comp_str (double dlat, char *clat);
void longitude_to_comp_str (double dlon, char *clon);

void latitude_to_nmea (double dlat, char *slat, char *hemi);
void longitude_to_nmea (double dlong, char *slong, char *hemi);

double latitude_from_nmea (char *pstr, char *phemi);
double longitude_from_nmea (char *pstr, char *phemi);

double ll_distance_km (double lat1, double lon1, double lat2, double lon2);

int ll_from_grid_square (char *maidenhead, double *dlat, double *dlon);