Skip to content

Where To ​

Where To is an incredibly easy way to find the closest steakhouse, bank branch, billiard club, or anything else you might be looking for — whether you are on vacation in Paris or in your own back yard! Protocol Launcher allows you to generate deep links to search for places and navigate to locations in Where To.

Usage ​

There are two ways to use this library:

  • On-Demand import from subpaths enables tree-shaking and keeps bundles small.
  • Full Import from the root package is convenient but includes all app modules.

Pick On-Demand for production builds; Full Import is fine for quick scripts or demos.

Select Installation Method

On-Demand
Recommended. Optimized for production.
Full Import
Convenient. Good for quick scripts.

Open App ​

{{currentMethod}}
ts
import { open } from 'protocol-launcher/whereto'

const url = open()
{{currentMethod}}
ts
import { search } from 'protocol-launcher/whereto'

const url = search({
  search: 'Bars',
})

Search at Location ​

{{currentMethod}}
ts
import { searchAtLocation } from 'protocol-launcher/whereto'

const url = searchAtLocation({
  search: 'Cafe',
  location: { lat: 37.332331, lon: -122.031219 },
})

Show Directions ​

{{currentMethod}}
ts
import { showDirections } from 'protocol-launcher/whereto'

const url = showDirections({
  location: { lat: 37.332331, lon: -122.031219 },
  mode: 'car',
})

Show Location ​

{{currentMethod}}
ts
import { showLocation } from 'protocol-launcher/whereto'

const url = showLocation({
  location: { lat: 37.332331, lon: -122.031219 },
  title: 'Apple HQ',
})

Show Place ​

{{currentMethod}}
ts
import { showPlace } from 'protocol-launcher/whereto'

const url = showPlace({
  poi: '7415861409383649399',
})