Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: set up string collection params #8

Open
alexw668 opened this issue Jan 20, 2016 · 0 comments
Open

Question: set up string collection params #8

alexw668 opened this issue Jan 20, 2016 · 0 comments

Comments

@alexw668
Copy link

Hi,

I really like your gem for dealing with the MapQuest API calls. I am trying MapQuest::Services::Directions and have a need to set the avoids option. The API says it's a string collection, so I thought I could do this

map_quest = MapQuest.new "my key"
from = "1 Infinite Loop, Cupertino, CA"
to = "1 Hacker Way, Menlo Park, CA"
response = map_quest.directions.route(from, to, avoids:["Ferry","Approximate Seasonal Closure"])

but my request ends with an error message claiming that invalid value for parameter 'avoid' and valid options are: [toll road, unpaved, ferry, limited access, approximate seasonal closure, country border crossing]. How do I pass such a string collection to avoids option?

Thanks,
Alex

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant