I have done something similar in SQL Server.... the code may differ slightly but the concept should be the same.... I buffered (in my case points in order to account for the "nearby")..... Hopefully this will be helpful!
USE [GeoTest]
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER PROCEDURE [dbo].[usp_MDXLights_Intersection]
@latitude float,
@longitude float,
@BufferSize float
AS
BEGIN
SET NOCOUNT ON;
Declare @Point geography
SET @Point = geography::Point(@latitude,@longitude, 4326)
Declare @SearchArea geometry
Declare @G geography
Set @G = @Point.STBuffer(@BufferSize *.3048)
Set @SearchArea = geometry::STGeomFromWKB((Select @G.STAsBinary()), 4326)
Select
Shape.STGeometryType() as GeometryType,
Shape.STAsText() as WKT,
'Light ID: ' + LSAIT as Title,
'Pole Type: ' + dPoleType + '<br/>' +
'Fixture: ' + dFixtureType + '<br/>' +
'Support: ' + dSupportType + '<br/>' +
'Number of Lights: ' + cast(NumberLights as nvarchar(5)) + '<br/>' as Description,
MDXLights.FixtureType as FT
From
MDXLights INNER JOIN
lkLightsFixtureType ON MDXLIGHTS.FixtureType = lkLightsFixtureType.FixtureType INNER JOIN
lkLightsPoleType ON MDXLIGHTS.PoleType = lkLightsPoleType.PoleType INNER JOIN
lkLightsSupportType ON MDXLIGHTS.SupportType = lkLightsSupportType.SupportType
Where
Shape.STIntersects(@SearchArea) = 1
Union ALL Select
@SearchArea.STGeometryType() as GeometryType,
@SearchArea.STAsText() as WKT,
'Search Area' as Title,
cast(@BufferSize as nvarchar(5)) + 'foot Search radius' as Description,
cast('100' as int) as FT
END