I am working on a project that will be using the WebViewer fairly heavily. One of the functions that we would like to have is the ability to check vicinity in google maps. The issue is that we haven't been able to find that kind of functionality. The only kind of vicinity checks that I have found is the check for restaurants and businesses. But I want to search for specific coordinates and find out how many are in a radius around my current location.

If anyone has any ideas for this it would be an immense help, thanks!

Find out how many what are around your location, coordinates from your database?

If that's the case, then you need some un-stored calculation fields that can calculate distance from the "target" coordinates. This would allow you to perform a find for any coordinate sets that are within a threshold.

So in order:

Step 1) Get your current coordinates (not sure how reliable this is in a webviewer, but FileMaker Go has a location function that can return latitude/longitude coordinates). Set these as global variables, like $$currentLatitude, $$currentLongitude

Step 2) Make un-stored calculation fields that calculate the differential in distance from the stored coordinates. EG:

using this custom function: FileMaker Custom Function:DistanceBetweenPoints ( Lat1; Lon1; Lat2; Lon2; Units )

table::distanceToTarget = DistanceBetweenPoints( $$currentLatitude ; $$currentLongitude ; table::latitude ; table::longitude ; "miles" )

Step 3) Perform a find in the table::distanceToTarget field with your radius threshold. EG: "< .5" using the above calculation and looking for coordinates within half a mile.