#community-help

Geosearch Filter Issue in Typesense PHP Client

TLDR Abdullah, Abdullah, is having trouble with the geosearch filter in his PHP client for Typesense. He is seeking assistance from Jason.

Powered by Struct AI
Oct 07, 2021 (23 months ago)
Abdullah
Photo of md5-34cdef5ee27e6b9cdf46e37972a4de07
Abdullah
05:59 PM
Hello there guys, I'm Abdullah the guy who wrote the php client for typesense.

I'd love to get your help regarding an issue I'm facing with the geosearch, it seems that the radius I'm sending inside the filters has no effect on the results returned from the API
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
06:00 PM
Hi Abdullah! 👋

Could you share the exact filter_by query you're using?
Abdullah
Photo of md5-34cdef5ee27e6b9cdf46e37972a4de07
Abdullah
06:46 PM
it's as simple as location(lat, lng, 5 km)
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
07:00 PM
Hmm, could you share the exact curl command (without the API keys) and the full response you see from Typesense?
Abdullah
Photo of md5-34cdef5ee27e6b9cdf46e37972a4de07
Abdullah
08:01 PM
sure