Skip to content

jolevesq/geoview-api-geolocator

 
 

Repository files navigation

geoview-api-geolocator

The Canadian Geospatial Platform (CGP) needs the ability to do Geocoding

Geocoding is the process of converting addresses (like "1600 Amphitheatre Parkway, Mountain View, CA") into geographic coordinates (like latitude 37.423021 and longitude -122.083739), which you can use to place markers on a map, or position the map. Google Maps Geocoding API

There is many different APIs on the market to achieve this task. Each one of them has pros and cons and the use of only one API introduce limitations. The idea is the create a wrapper around many APIs and custom sources of geolocated features to be able to build a standard response for CGP tools to interact with.

Simple diagram geoview-api-geolocator-diagram

Demo

Sample call to the API: https://ocni6zoj73.execute-api.ca-central-1.amazonaws.com/dev?q=meech&lang=en&keys=geonames

The demo with embeded viewer is being loaded in public/index.html as a script tag

<script src="https://canadian-geospatial-platform.github.io/geoview/public/cgpv-main.js"></script>

Running the project

First clone this repo

$ git clone https://github.com/Canadian-Geospatial-Platform/geoview-api-geolocator.git

Go to the directory of the cloned repo

cd geoview-api-geolocator

Install dependencies

$ npm install

Run the project

$ npm run serve

Building the project

$ npm run build

About

Wrapper API around geolocator API's

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 56.5%
  • Batchfile 29.8%
  • TypeScript 9.5%
  • JavaScript 3.4%
  • HTML 0.8%