1.1.1 • Published 8 years ago

geocode-many v1.1.1

Weekly downloads
4
License
BSD
Repository
github
Last release
8 years ago

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);
1.1.1

8 years ago

1.1.0

8 years ago

1.0.1

9 years ago

1.0.0

9 years ago

0.1.0

10 years ago

0.0.0

10 years ago