thipages/quickgpx

快速GPX解析器

v0.2.0 2020-08-16 09:33 UTC

This package is auto-updated.

Last update: 2024-09-16 18:26:18 UTC


README

快速GPX解析器

安装

composer require thipages\quickgpx

API

    QGpx::parse($filename,$withOriginalTime=false):array

返回一个定义如下数组的数组

  • 纬度
  • 经度
  • 海拔
  • UTC Unix时间
  • ISO时间(如果$withOriginalTime设置为true
    QGpx::analyze($gpxAsArray):array

返回一个描述某些统计属性的关联数组

  • timeRange : [ minUnixTime, maxUnixTime ]