geocodeplus
v1.1.0
Published
Simple library that returns cordiantes based on an address using goog'es geocode api.
Downloads
3
Readme
GeoCodePlus
Install command - npm install geocodeplus
EXAMPLES
// require the module in your project
var geocodeplus = require.('geocodeplus');
// set your address
var myAddress = "full sail university, fl";
// Call locate and log results
geocodeplus.locate(myAddress, function(results){
console.log( "Query Address: " + results.full );
});
.locate(address, function(results){});
This function makes a call against the geocode API and returns the results. results is an Object with the the fallowing key-value pairs.
- 'lat' : "Latitude Cordiante"
- 'long' : "Longitude Cordinate"
- 'full : "Full address found by query"
- 'error' : "Any errors returned by processing"
Designed by: Matthew Greenberg [email protected]