定制 jamesblanksby/gpxtoolbox 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

jamesblanksby/gpxtoolbox

最新稳定版本:2.1.0

Composer 安装命令:

composer require jamesblanksby/gpxtoolbox

包简介

A library for creating, parsing, and modifying GPX files.

README 文档

README

Maintainability Latest version Downloads

A library for creating, parsing, and modifying GPX files.

📍 Features

  • Full* support for official specification.
  • High performance polyline simplification.
  • Statistics analysis.
  • Activity splits.
  • GPX, JSON, GeoJSON and PHP Array output.

* Extensions coming soon!

Statistics Analysis

  • Smoothed distance (m)
  • Moving duration (s)
  • Total duration (s)
  • Average speed (km/h)
  • Maximum speed (km/h)
  • Average pace (min/km)
  • Best pace (min/km)
  • Minimum elevation (m)
  • Maximum elevation (m)
  • Elevation gain (m)
  • Elevation loss (m)

⚡️ Installation

You can install GPXToolbox with composer.

$ composer require jamesblanksby/gpxtoolbox

📖 Getting Started

Load a GPX file and retrieve statistical analysis.

<?php

use GPXToolbox\GPXToolbox;

include 'vendor/autoload.php';

$toolbox = new GPXToolbox();
$gpx = $toolbox->load('examples/input.gpx');

$statistics = $gpx->getTracks()->getStatistics();

echo sprintf('<pre>%s</pre>', print_r($statistics->toArray(), true));

The above example will output:

Array
(
    [distance] => 51946.58
    [movingDuration] => 29940
    [totalDuration] => 32678
    [averageSpeed] => 6.23
    [maxSpeed] => 13.45
    [averagePace] => 637.46
    [bestPace] => 267.62
    [minElevation] => 64.32
    [maxElevation] => 240.6
    [gainElevation] => 2113.4
    [lossElevation] => 2104.17
)

See the examples directory for more…

统计信息

  • 总下载量: 128
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 3
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-09-05

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固