Parameter don't work on route API

2 posts / 0 new
Last post
SLN_DD
Parameter don't work on route API

Hi,

I have the following request with some parameters:

https://www.mapquestapi.com/directions/v2/optimizedRoute?json={"locations":["51.001134,12.434900","50.9861,12.44614","50.99788,12.38434","50.98005,12.45592","50.9528,12.45987","50.93442,12.50553"]}&outFormat=json&key=KEY&unit=k&doReverseGeocode=false&narrativeType=none&locale=de_DE&manMaps=false

Problem:

It seems that the paramter don't work. If I test the request in the browser, for example the "locale" or the "unit" paramter are wrong.

How can I fix that?

 

Thanks
Lars


MQBrianCoakley
If the locations are json
If the locations are json then the parameters need to be json too. They should go inside the options object in the json. The user guide shows examples how to construct the options in json.