- Type:
boolean
- Default:
false
- Scope:
search
aroundLatLngViaIP
parameter automatically determines a user’s geographic location using their IP address and uses it as the center for geo-based search.
This provides location-aware results without requiring explicit coordinates.
For more information, or if you want to provide explicit coordinates, see aroundLatLng
.
To learn more, see Geo location.
Usage
-
For server-side requests, set the
X-Forwarded-For
header with the user’s IP address. Otherwise, every search will be around the location of your server. -
You can adjust precision using
aroundPrecision
, but accuracy varies—especially when IP addresses are mapped to large areas. -
This parameter is ignored if
insideBoundingBox
orinsidePolygon
is used.
Example
Current API clients
Current API clients
Legacy API clients
Legacy API clients