Geocoding Tutorial
Hi, I was working through the geocoding tutorial and had some of the issues that have already been posted, but can't seem to find what the problem is. I found a way for it to work, but its not exactly what the tutorial shows. When I use the following code:
var latitude = requestParams["latitude"];
var longitude = requestParams["longitude"];
var radius = requestParams["radius"];
It works when I add these into the query string section of the service that I created. The tutorial suggests that I need to add these into the body section, but then it doesn't work showing a bad parameter issue. Also, the tutorial suggests to use this code:
var latitude = request.object().latitude;
var longitude = request.object().longitude;
var radius = request.object().radius;
When I use intellisense, object() is not found. Also, the code causes an error in test upon trying to get the latitude. Is there a different syntax that would allow it to work with the params being in the body? I have it working, but I want to do it the correct way following best practice. Thanks for the help!