How can I validate the geolocation of responses to ensure that they are accurate and align with the target audience?
There might be more or better ways to do this, but here are a few ways I see.
Scenario 1: you have GPS coordinates for listing and interview
If both coordinates are in your Survey Solutions interview, then you can use the GpsDistance
function to compute the distance between the two points and determine if they are less than a certain threshold distance.
Scenario 2: you have GPS coordinates of interview and bounding box of interview area
Suppose you can describe a bounding box for the, say, region from which responses can come, you can see if the GPS coordinate lies within the bounding box. See the InRectangle
function.
Scenario 3: you have GPS coordinates from the interview and want to perform validation outside of Survey Solutions
Modern data tools like R and Python have packages to deal with this type of problems. For example, with the sf package in R, you could read in the admin boundaries for an area, an see whether points lie within those boundaries. The disadvantage of this approach is that your results will lag behind interviews. The advantage is that you have greater control over the validations you perform and over the types of inputs you bring to the problem (e.g., administrative boundaries, other polygons characterizing an area).
Hi Arthur!
Thank you for your response! I have already implemented these options. However, I would like to know if there is a way within the survey settings that allows for the approval or blocking of entries from users in specific countries, similar to the functionality available in Zoom?
Thanks, I think I better understand your problem. This ties in with this post?
The developers can correct me if Iām wrongāand I probably amābut Iām not sure Survey Solutions itself has a mechanism for doing this.
However, I imagine that you achieve the same effect by filtering requests that hit your web serverāsomething like AWSā WAF rules. Thatās an inelegant, brute-force solution.
Do you want users from different locales to see different thingsāfor example, users whose IP address is from target areas to see your Survey Solutions server login and users outside of target areas to see something else?
We have developed a survey and would like to restrict the participation to persons located only within a specific country. While the option to track āGPS coordinatesā works only as a āwarningā and does not limit persons outside the country from submitting their answers to the server. Therefore, we are seeking an alternative solution within the āsurvey settingsā that would allow us to block access to the survey for users located outside the specified country from the beginning.
While awaiting better solutions, hereās another attempt: what about a critical rule that prevents synching for GPS coordinates that are not within your target country? Read more here. The Block
action sounds like what you want.
Chrome:
Edge:
What is the survey and what is the country?