Skip to content

Geolocation

Wink uses geolocation extensively to power location-based search, automatic currency and language detection, and geographic inventory filtering.

When a user visits the platform, Wink automatically detects their location based on their IP address. This enables:

  • Automatic currency selection — Display prices in the user’s local currency.
  • Language preference — Suggest content in the user’s likely language.
  • Nearby results — Prioritize inventory close to the user’s location.

Wink supports geographic search using four spatial query types. These power the map-based search, radius search, and area-based filtering across the platform.

A single geographic coordinate (latitude, longitude). Used to mark a specific location — for example, a property’s address or a user’s current location.

{
"point": {
"x": -73.9857,
"y": 40.7484
}
}

A center point with a radius. Used for “search near me” or radius-based queries — for example, “hotels within 10 km of Times Square.”

{
"point": {
"x": -73.9857,
"y": 40.7484
},
"radius": 10000
}

A bounding box defined by southwest and northeast corners. Used for map-based search — when a user pans and zooms a map, the visible area defines a rectangle query.

{
"southWest": {
"x": -74.0060,
"y": 40.7128
},
"northEast": {
"x": -73.9350,
"y": 40.7831
}
}

A custom shape defined by a series of points. Used for searching within irregular geographic boundaries — for example, a neighborhood, a city district, or a custom-drawn area on a map.

{
"polygon": {
"points": [
{ "x": -74.0060, "y": 40.7128 },
{ "x": -73.9350, "y": 40.7128 },
{ "x": -73.9350, "y": 40.7831 },
{ "x": -74.0060, "y": 40.7831 },
{ "x": -74.0060, "y": 40.7128 }
]
}
}
Use caseShape typeExample
Search near meCircleHotels within 5 km of my location
Map viewport searchRectangleProperties visible on the current map view
Neighborhood searchPolygonHotels in a specific city district
Property locationPointExact location of a property listing

Spatial query parameters are accepted by the Lookup API and Inventory API endpoints. Pass the appropriate GeoJSON shape in your search request to filter results by location.

See the APIs documentation for endpoint-specific details.