Skip to content

Commit

Permalink
add more parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
iBinh committed Aug 3, 2021
1 parent 0f01166 commit 78a2322
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@goongmaps/goong-sdk",
"version": "1.0.5",
"version": "1.0.6",
"description": "A Javascript SDK working with Goong REST APIs",
"main": "index.js",
"files": [
Expand Down
8 changes: 6 additions & 2 deletions services/autocomplete.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,10 @@ Autocomplete.search = function(config) {
input: v.required(v.string),
location: v.string,
radius: v.number,
limit: v.number
limit: v.number,
session_token: v.string,
sessiontoken: v.string,
more_compound: v.boolean
})(config);

return this.client.createRequest({
Expand Down Expand Up @@ -84,7 +87,8 @@ Autocomplete.search = function(config) {
*/
Autocomplete.placeDetail = function(config) {
v.assertShape({
placeid: v.required(v.string)
placeid: v.required(v.string),
place_id: v.string
})(config);

return this.client.createRequest({
Expand Down
2 changes: 1 addition & 1 deletion services/directions.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Directions.getDirections = function(config) {
v.assertShape({
origin: v.required(v.string),
destination: v.required(v.string),
vehicle: v.oneOf('car', 'bike', 'taxi'),
vehicle: v.oneOf('car', 'bike', 'taxi', 'truct', 'hd'),
type: v.oneOf('fastest', 'shortest'),
alternatives: v.boolean
})(config);
Expand Down
2 changes: 1 addition & 1 deletion services/distancematrix.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ DistanceMatrix.getMatrix = function(config) {
v.assertShape({
origins: v.required(v.string),
destinations: v.required(v.string),
vehicle: v.oneOf('car', 'bike', 'taxi'),
vehicle: v.oneOf('car', 'bike', 'taxi', 'truct', 'hd'),
type: v.oneOf('fastest', 'shortest')
})(config);

Expand Down
2 changes: 1 addition & 1 deletion services/static.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ Static.getStaticImage = function(config) {
destination: v.required(v.string),
width: v.number,
height: v.number,
vehicle: v.oneOf('car', 'bike', 'taxi'),
vehicle: v.oneOf('car', 'bike', 'taxi', 'truct', 'hd'),
type: v.oneOf('fastest', 'shortest'),
color: v.string
})(config);
Expand Down

0 comments on commit 78a2322

Please sign in to comment.