Skip to content

Latest commit

 

History

History
29 lines (22 loc) · 657 Bytes

README.md

File metadata and controls

29 lines (22 loc) · 657 Bytes

node-batch-geocoder

Node.js Batch Geocoder for the Google Maps API

Build Status

Example

var Geocoder = require("../lib/batch-geocoder"),
  geocoder = new Geocoder("./geocode-cache.csv");

geocoder.on("finish", function(collection){
  console.log(collection);
});

geocoder.on("status", function(status){
  console.log(completed.current + '/' + completed.total);
});

geocoder.find([
  "Broadway, NYC",
  "Champs-Élysées, Paris",
  "Brandenburger Tor, Berlin",
  "Omotesandō, Tokyo",
  ...
]);