### Navigation

- index
- modules |
- next |
- previous |
- Phatch 0.2 documentation »
- lib »

# gps

`lib.gps.``d`(any) - get degrees from a number :eg d(33.41) → 33

`lib.gps.``get_metadata`(dateString, timedict, timeshift, path, report=None)

  get_metadata(float) - get a dictionary of changes to the metadata dateString - EXIF date format string /* in */ timeshift - delta between GMT and local time (seconds.

  > Positive to West)

  path - path to the image (only for stdout reporting) report - log file

`lib.gps.``get_node_value`(node)

  get_node_value((node) - return the value of a node

`lib.gps.``get_text`(nodelist)

  get_text(nodeList) - return the text in nodelist

`lib.gps.``get_xml_timez`(phototime, timeshift)

  getXMLtimez - convert a datetime to an XML formatted date

`lib.gps.``handle_gpx`(gpx, timedict, ns)

`lib.gps.``handle_trk`(trk, timedict, ns)

`lib.gps.``handle_trkpt`(trkpt, timedict, ns)

`lib.gps.``handle_trkseg`(trkseg, timedict, ns)

`lib.gps.``m`(any) - get minutes from a number :eg d(33.41) → 24

`lib.gps.``r`(f)

  r(float) - get a Rational number for a float

`lib.gps.``read_gpx`(gpx_file)

  read_gpx(string) - get a dictionary of time/position information

`lib.gps.``s`(any) - get seconds from a number :eg s(33.41) → 36

`lib.gps.``search`(dict, target)

  search(dict,taget) - search for closest match

`lib.gps.``write_header`(report)

### Navigation

- index
- modules |
- next |
- previous |
- Phatch 0.2 documentation »
- lib »