InBetween
SearchLocations

Weights

Use weight to move the POINT-mode midpoint towards some locations, for example someone who can't travel far.

By default every location has equal pull on the midpoint. Add a weight to a location to give it more or less influence. Weights only apply in POINT mode and are ignored in PATH mode.

How weights are calculated

Think of weights as percentages of a total of 100:

  1. No weights at all: the midpoint is the simple average of all locations.
  2. Some locations weighted: unweighted locations share whatever is left of 100 equally.
  3. The midpoint is the weighted average of the coordinates. Weights are relative, so 60/40 and 30/20 give the same midpoint.
  4. A weight of 100 makes that location the midpoint, whatever the other weights are.

Weights over 100

If your weights add up to 100 or more, any unweighted locations get zero influence. Either weight every location or keep the total under 100.

weight must be a whole number. A weight of 0 is treated as "no weight set".

Examples

{
  "locations": [
    { "lat": 51.5072, "lon": -0.1276 },
    { "lat": 51.5154, "lon": -0.1419 }
  ],
  "mode": { "mode": "POINT", "maxDistance": 750 }
}
{
  "locations": [
    { "lat": 51.5072, "lon": -0.1276, "weight": 70 },
    { "lat": 51.5154, "lon": -0.1419, "weight": 30 }
  ],
  "mode": { "mode": "POINT", "maxDistance": 750 }
}
{
  "locations": [
    { "lat": 51.5072, "lon": -0.1276, "weight": 40 },
    { "lat": 51.5154, "lon": -0.1419 },
    { "lat": 51.5034, "lon": -0.1195 }
  ],
  "mode": { "mode": "POINT", "maxDistance": 1000 }
}
{
  "locations": [
    { "lat": 51.5072, "lon": -0.1276 },
    { "lat": 51.5154, "lon": -0.1419 },
    { "lat": 51.5101, "lon": -0.134, "weight": 100 }
  ],
  "mode": { "mode": "POINT", "maxDistance": 300 }
}
ExampleEffective weights
Equal50% / 50%
Unequal70% / 30%: the midpoint sits closer to the first person
Partial40% / 30% / 30%: the remaining 60% is split equally
Fixed pointThe third location is the midpoint

When to use weights

  • Travel constraints: give more weight to someone with limited mobility, children or a tight schedule.
  • Host or organiser: bias towards the person arranging the meetup.
  • Transport: someone on foot might get more weight than someone with a car or a direct train.
  • Group size: if one location stands for several people (for example, an office), weight it by headcount.

Start with equal weights and only add them when there's a clear reason. Small differences such as 55/45 barely move the midpoint over short distances.

Next steps

On this page