Skip to content

Node module for normalizing addresses and converting to coordinates

Notifications You must be signed in to change notification settings

makerbot/locate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Notice: This repo is completely unused and can be deleted.

Status

Latest Build

Circle CI

Master Build

Circle CI

Use

Note: This is a very thin wrapper over https://github.com/nchaulet/node-geocoder

var locate = require('makerbot-locate');
locate('11201', function(err, result) {
  if (err) console.error(err);
  console.log(result);
  /* [{
    formattedAddress: 'Brooklyn, NY 11201, USA',
    latitude: 40.6986772,
    longitude: -73.9859414,
    extra:
     { googlePlaceId: 'ChIJ10KLdUlawokRxmIQu1GuCHk',
       confidence: 0.5,
       premise: null,
       subpremise: null,
       neighborhood: null,
       establishment: null },
    administrativeLevels: { level1long: 'New York', level1short: 'NY' },
    zipcode: '11201',
    city: 'New York',
    country: 'United States',
    countryCode: 'US'
  }] */
});

Results are memoized so subsequent calls with the same address string should return almost instantly.

About

Node module for normalizing addresses and converting to coordinates

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published