Context: New user (about 5 days) attempting to pass about 100 sets of lat/long coordinates via several requests (about 12) within a collection to an API on a monthly basis and manually inserting each lat/long coordinate in 12 GET requests is not feasible.
8 of the requests within the collection require a different set of lat/long coordinates - coordinates at another geographic level, i.e. Census Tract.
I already have the 100 latitude and longitude coordinates but currently just using two sets of latitude/longitude coordinates to develop the pre-request script, test scripts, variables, etc. and successfully run prior to using all 100 coordinates.
(I believe that it is possible to “auto-generate” the latitude and longitude coordinates for a particular geographical region and then feed this into the requests. This will be tackled later.)
Have reviewed the prior post titled “How to loop over array to change input of request?” and it mirrors about 80% of what I want to accomplish.
Steps taken so far include;
Modified the URL similar to the following format:
https://…/bylocation?latitude={{latitudeArray}}&longitude={{longitudeArray}}
Created a CSV files with two lat/long coordinates
Utilized the Collection Runner
Imported the CSV file into Postman
Tried the above-mentioned steps numerous times and still receive the error
"JSONError: No data, empty input at 1:1 "
Any insight as to how this error can be resolved?
Thanks in advance.
Attached are the pertinent files: