Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 26 lines (14 sloc) 0.608 kB
7ec406e changing the name to geo i didnt realize theres a geonode already on npm
U-HBO\foliveir authored
1 # Geo for Node.js
647ed8f format readme
Felipe Oliveira authored
2 by Felipe Oliveira (http://twitter.com/_felipera)
8a8f3e0 initial import
Felipe Oliveira authored
3
7ec406e changing the name to geo i didnt realize theres a geonode already on npm
U-HBO\foliveir authored
4 Geo is a very basic, but simple, geocode library for Node.js using Google's Geocode API (V3) - Geo Spatial features are coming out soon.
8a8f3e0 initial import
Felipe Oliveira authored
5
d19dbc7 @feliperazeek add installation to the README
authored
6
7
8 ## Installation
9
10 npm install geo
11
12
13
c70baed format readme
Felipe Oliveira authored
14 ## Usage
8a8f3e0 initial import
Felipe Oliveira authored
15
d19dbc7 @feliperazeek add installation to the README
authored
16 var geo = require('geo');
c70baed format readme
Felipe Oliveira authored
17
18 var address = '885 6th Ave #15D New York, NY 10001';
19 var sensor = false;
7ec406e changing the name to geo i didnt realize theres a geonode already on npm
U-HBO\foliveir authored
20 geo.geocoder(geo.google, address, sensor, function(formattedAddress, latitude, longitude) {
c70baed format readme
Felipe Oliveira authored
21 console.log("Formatted Address: " + formattedAddress);
22 console.log("Latitude: " + latitude);
23 console.log("Longitude: " + longitude);
24 });
e1e0428 format readme
Felipe Oliveira authored
25
Something went wrong with that request. Please try again.