Skip to content

Commit

Permalink
Merge pull request #473 from mapbox/add-depart-at
Browse files Browse the repository at this point in the history
add depart_at option to isochrone api
  • Loading branch information
chriswhong committed May 2, 2024
2 parents 1b5c24b + 6076701 commit eb8e804
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions services/isochrone.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ Isochrone.getContours = function(config) {
colors: v.arrayOf(v.string),
polygons: v.boolean,
denoise: v.number,
generalize: v.number
generalize: v.number,
depart_at: v.string
})(config);

config.profile = config.profile || 'driving';
Expand Down Expand Up @@ -101,7 +102,8 @@ Isochrone.getContours = function(config) {
contours_colors: config.colors ? config.colors.join(',') : null,
polygons: config.polygons,
denoise: config.denoise,
generalize: config.generalize
generalize: config.generalize,
depart_at: config.depart_at
});

return this.client.createRequest({
Expand Down

0 comments on commit eb8e804

Please sign in to comment.