Skip to content

Commit

Permalink
Merge pull request #5 from MapsPeople/version/1.1.0
Browse files Browse the repository at this point in the history
Version/1.1.0
  • Loading branch information
timMikkelsen authored Apr 12, 2024
2 parents 18e515e + b46f633 commit 0ec3686
Show file tree
Hide file tree
Showing 10 changed files with 783 additions and 8 deletions.
12 changes: 12 additions & 0 deletions MPBadgePosition.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/**
* The possible position of the badge on an icon.
*
* @export
* @enum {number}
*/
export enum MPBadgePosition {
bottomLeft,
bottomRight,
topLeft,
topRight,
}
25 changes: 25 additions & 0 deletions MPDirectionsService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,31 @@ export default class MPDirectionsService {
return DirectionsService.clearWayType(this.id);
}

/**
* Add an excludeWayType, these are based on [OSM highways](https://wiki.openstreetmap.org/wiki/Key:highway).
*
* Supported types are defined in {@link MPHighway}.
*
* @public
* @async
* @param {string} wayType
* @returns {Promise<void>}
*/
public async addExcludeWayType(wayType: string): Promise<void> {
return DirectionsService.addExcludeWayType(wayType, this.id);
}

/**
* Clears all added excludeWayType.
*
* @public
* @async
* @returns {Promise<void>}
*/
public async clearExcludeWayType(): Promise<void> {
return DirectionsService.clearExcludeWayType(this.id);
}

/**
* Sets whether routes should use departure time or arrival time when using the transit travel mode.
*
Expand Down
Loading

0 comments on commit 0ec3686

Please sign in to comment.