Express middleware that exposes geocoding endpoints.

Usage no npm install needed!

<script type="module">
  import expressGeocodingApi from '';


express-geocoding-api Build Status

This module sets up express middleware to expose geocoding endpoints for your app using node-geocoder.

Getting Started

Install the module with: npm install express-geocoding-api

var express_geocoding_api = require('express-geocoding-api'),
    app = require('express')();

// See `[node-geocoder](` documentation for all configuration options
  geocoder: {
    provider: 'google'

This exposes a couple routes to your app.

  • GET /geocode/location?address=<string>
  • GET /geocode/point?latitude=<float>&longitude=<float>

By default, each of these routes returns a JSON object containing locations.


In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using Grunt.


Copyright (c) 2014 Garrett Murphey
Licensed under the MIT license.