• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

iTowns / itowns / 10902507646

17 Sep 2024 11:56AM UTC coverage: 86.931% (-0.03%) from 86.964%
10902507646

push

github

Desplandis
release v2.44.2

2791 of 3694 branches covered (75.55%)

Branch coverage included in aggregate %.

24241 of 27402 relevant lines covered (88.46%)

1027.5 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

88.0
/src/Parser/GpxParser.js
1
import { gpx } from '@tmcw/togeojson';
1✔
2
import GeoJsonParser from 'Parser/GeoJsonParser';
1✔
3
import { deprecatedParsingOptionsToNewOne } from 'Core/Deprecated/Undeprecator';
1✔
4

1✔
5
/**
1✔
6
 * The GpxParser module provides a [parse]{@link module:GpxParser.parse}
1✔
7
 * method that takes a GPX in and gives an object formatted for iTowns
1✔
8
 * containing all necessary informations to display this GPX.
1✔
9
 *
1✔
10
 * @module GpxParser
1✔
11
 */
1✔
12
export default {
1✔
13
    /**
1✔
14
     * Parse a GPX file content and return a {@link FeatureCollection}.
1✔
15
     *
1✔
16
     * @param {XMLDocument} gpxFile - The GPX file content to parse.
1✔
17
     * @param {ParsingOptions} options - Options controlling the parsing.
1✔
18
     *
1✔
19
     * @return {Promise} A promise resolving with a {@link FeatureCollection}.
1✔
20
     */
1✔
21
    parse(gpxFile, options) {
1✔
22
        options = deprecatedParsingOptionsToNewOne(options);
×
23
        return GeoJsonParser.parse(gpx(gpxFile), options);
×
24
    },
×
25
};
1✔
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc