Install command - npm install geocodeplus
// 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 );
});
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 magreenberg@fullsail.edu