Skip to content

goong-io/goong-geocoder-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Goong Geocoder

A geocoder control for goong-js using the Goong Places API.

If you are supporting older browsers, you will need a Promise polyfill. es6-promise is a good one, if you're uncertain.

Usage with a module bundler

yarn add @goongmaps/goong-geocoder

This module exports a single class called GoongGeocoder as its default export, so in browserify or webpack, you can require it like:

var GoongGeocoder = require('@goongmaps/goong-geocoder');

Using with CDN

<script src='https://cdn.jsdelivr.net/npm/@goongmaps/goong-geocoder/dist/goong-geocoder.min.js'></script>
<link href="https://cdn.jsdelivr.net/npm/@goongmaps/goong-geocoder/dist/goong-geocoder.css" rel="stylesheet" type="text/css"/>

Examples

Using within Map

https://docs.goong.io/example/add-a-geocoder/

Using without a Map

It is possible to use the plugin without it being placed as a control on a goong-js map. https://docs.goong.io/example/goong-geocoder-without-map/

Deeper dive

API Documentation

See API.md for complete reference.