https://sparkapi.com/Reso/OData/Property?$filter=(PropertyType eq 'Residential') and geo.intersects(Location,geography'POLYGON((-85.666028 42.920418,-85.672022 42.941522,-85.625124 42.940888,-85.623763 42.920824,-85.666028 42.920418))')&$top=4&$select=ListingKey,BedroomsTotal,Directions,ListingContractDate,ModificationTimestamp,StandardStatus,PropertyType,Location,PublicRemarks,StreetName,StreetNumber,City
Need a minimum of four points to search by a polygon. The first and last points must be the same and because you’re able to put ‘holes’ into your polygon, you’d need to wrap the coords in another set of parenthesis. Note that the structure of a geospatial search can vary per MLS. Pay attention to MLS Service metadata name for Type=”Edm.GeographyPoint”.