How to use isomorphic-mapzen-search - 1 common examples

To help you get started, we’ve selected a few isomorphic-mapzen-search examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github conveyal / taui / src / actions / browsochrones.js View on Github external
async function geocodeP (p) {
    if (qs[p]) {
      const results = await geocode({
        apiKey: process.env.MAPZEN_SEARCH_KEY,
        boundary: geocoder.boundary,
        focusPoint: geocoder.focusLatlng,
        text: qs[p]
      })
      if (results.features.length > 0) {
        return {
          label: results.features[0].properties.label,
          latlng: lonlat(results.features[0].geometry.coordinates)
        }
      }
    }
  }
  return [await geocodeP('start'), await geocodeP('end')]

isomorphic-mapzen-search

Isomorphic Mapzen search for reuse across our libraries.

MIT
Latest version published 3 years ago

Package Health Score

46 / 100
Full package analysis

Popular isomorphic-mapzen-search functions

Similar packages