Meet in the middle

whereami · nearme ●●○

Geocode two addresses, average them with jq, and search for bars around the midpoint. A fair place to meet a friend, as the crow flies. The crow does not check for rivers, so look at the map before you commit.

$ { whereami "350 5th Ave, New York" --json; \ whereami "200 Eastern Pkwy, Brooklyn" --json; } | \ jq -s '{latitude: (map(.latitude) | add / 2), longitude: (map(.longitude) | add / 2)}' | \ nearme "bar" --count=3
1. Deux Chats (nightlife) 27 Broadway, New York, NY 11249 +1 (917) 909-0145 · https://www.deuxchatsbk.com · 575 m 2. Bar Milagro (nightlife) 29 Dunham Pl, New York, NY 11249 +1 (929) 298-0032 · https://www.xolobk.com/barmilagro · 617 m 3. Cafe Susanne (nightlife) 8 River St, Brooklyn, NY 10044 https://www.barsusanne.com · 651 m
Requires: whereami 0.4+, jq, nearme