# Class ImportGPX

GPX importer for WP Google Maps Pro

This handles importing of files.

  WPGMZA\Import
  WPGMZA\ImportGPX

Namespace: WPGMZA
Since: 7.0.0
Located at import-export/class.import-gpx.php

Methods summary
`protected` | # `check_options( )` Check options. Check options. #### Throws Exception On malformed options.
`protected` | # `parse_file( )` Parse file data. Parse file data. #### Throws Exception When no data found in file data or xml parse error.
`public string` | # `admin_options( )` Output admin import options. Output admin import options. #### Returns string Options html.
`public` | # `import( )` Import the GPX file. Import the GPX file.
`public` | # `clear_map_data( )` Clear map data from applys. Clear map data from applys.
`protected` | # `create_map( )` Create map. Create map.
`protected` | # `import_tracks( )` Import tracks. Import tracks.
`protected array` | # `simplify_polyline( array $points, float $epsilon )` Takes a polyline and finds a similar shape with fewer points. Takes a polyline and finds a similar shape with fewer points. Uses Ramer-Douglas-Peucker algorithm. #### Parameters $points Point array. $epsilon Distance threshold. #### Returns array Point array.
`protected` | # `import_waypoints( )` Import way points. Import way points.

Methods inherited from WPGMZA\Import
`__construct(), attempt_set_time_limit(), bail_if_near_time_limit(), check_ids(), geocode(), get_admin_notices(), get_remaining_time(), get_time_limit(), load_file(), onImportComplete(), record_start_time(), set_progress()`

Properties inherited from WPGMZA\Import
`$db_defaults, $file, $file_data, $file_url, $options`