Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
given an array of objects and a transform into a geocodable string, geocode them if possible
JavaScript HTML
branch: gh-pages
Failed to load latest commit information.
.editorconfig Use https module
.gitignore ignorezzzz
CHANGELOG.md Use https module
LICENCE.md Update script to use `v4` api
README.md Use https module
data.js Update script to use `v4` api
geocodemany.js Use xhr
index.html Update script to use `v4` api
index.js Use xhr
package.json Use xhr

README.md

geocodemany

Given an array of objects and a transform into a geocodable string, geocode them if possible. Works in both node and the browser.

example

var data = [{
    city: 'Chester',
    state: 'New Jersey'
}, {
    city: 'Washington',
    state: 'DC'
}];

function transform(obj) {
    return obj.city + ', ' + obj.state;
}

function progress() {
    console.log(arguments);
}

function done() {
    console.log(arguments);
}

var geocoder = geocodemany('ACCESSTOKEN');

geocoder(data, transform, progress, done);
Something went wrong with that request. Please try again.