Documentation ¶
Overview ¶
Package implements a binary for read serial port nmea.
Package implements a binary for read serial port nmea.
Index ¶
- func DecimalDegreeToLat(lat float64) string
- func DecimalDegreeToLon(lon float64) string
- func Distance(lat1 float64, lng1 float64, lat2 float64, lng2 float64, unit ...string) float64
- func LatLongToDecimalDegree(num float64, cord string) float64
- func ReadTCP(conn net.Conn, filters ...string) chan string
- type Device
- type DeviceTCP
- type Gpgga
- type Gprmc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecimalDegreeToLat ¶
func DecimalDegreeToLon ¶
func Distance ¶
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: ::: ::: ::: This routine calculates the distance between two points (given the ::: ::: latitude/longitude of those points). It is being used to calculate ::: ::: the distance between two locations using GeoDataSource (TM) prodducts ::: ::: ::: ::: Definitions: ::: ::: South latitudes are negative, east longitudes are positive ::: ::: ::: ::: Passed to function: ::: ::: lat1, lon1 = Latitude and Longitude of point 1 (in decimal degrees) ::: ::: lat2, lon2 = Latitude and Longitude of point 2 (in decimal degrees) ::: ::: unit = the unit you desire for results ::: ::: where: 'M' is statute miles (default) ::: ::: 'K' is kilometers ::: ::: 'N' is nautical miles ::: ::: ::: ::: Worldwide cities and other features databases with latitude longitude ::: ::: are available at https://www.geodatasource.com ::: ::: ::: ::: For enquiries, please contact sales@geodatasource.com ::: ::: ::: ::: Official Web site: https://www.geodatasource.com ::: ::: ::: ::: GeoDataSource.com (C) All Rights Reserved 2018 ::: ::: ::: :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
func LatLongToDecimalDegree ¶
Types ¶
type DeviceTCP ¶
type DeviceTCP struct {
// contains filtered or unexported fields
}