arvindwill
arvindwill

Reputation: 1992

Algolia Ipaddress based geolocation search

In Algolia aroundLatLong, Is it possible to manually pass the ipaddress and make the method "aroundLatLongViaIP" work? Now it seems that it will auto-detect based on the request ipaddress.

Upvotes: 0

Views: 96

Answers (1)

Alex C
Alex C

Reputation: 465

Yes, you just need to add the following custom HTTP header X-Forwarded-For => END_USER_IP with your geo-based search query.

Upvotes: 1

Related Questions