Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 17 lines (12 sloc) 0.642 kb
647ed8f format readme
Felipe Oliveira authored
1 # GeoNode for Node.js (http://geeks.aretotally.in/projects/geonode)
2 by Felipe Oliveira (http://twitter.com/_felipera)
8a8f3e0 initial import
Felipe Oliveira authored
3
c70baed format readme
Felipe Oliveira authored
4 GeoNode adds very basic, but simple to use, geocoding capabilities to Node.js using Google's Geocode API - Geo Spatial is coming out soon.
8a8f3e0 initial import
Felipe Oliveira authored
5
c70baed format readme
Felipe Oliveira authored
6 ## Usage
8a8f3e0 initial import
Felipe Oliveira authored
7
c70baed format readme
Felipe Oliveira authored
8 var geonode = require('../lib/geonode');
9
10 var address = '885 6th Ave #15D New York, NY 10001';
11 var sensor = false;
12 geonode.geocoder(geonode.google, address, sensor, function(formattedAddress, latitude, longitude) {
13 console.log("Formatted Address: " + formattedAddress);
14 console.log("Latitude: " + latitude);
15 console.log("Longitude: " + longitude);
16 });
Something went wrong with that request. Please try again.