Skip to content

Configurable geographic location search library

License

Notifications You must be signed in to change notification settings

RAMP-PCAR/geosearch

Repository files navigation

Provides name, postal code, and NTS location based searching within Canada, using GeoGratis as the backend provider.

It can be configured to return only certain types of results like provinces or cities, filter catagories, sort results, and can be used in English or French.

See our documentation for all the details

Installation

Package manager

Using the npm package manager:

npm i --save rz-geosearch

Then import it:

import 'rz-geosearch';

You'll then have access to the GeoSearch class namespace.

Precompiled

This repo contains a precompiled file located at src/geosearch.js which can be included in a script tag on your page. A global window object named GeoSearch will be created.