Git Product home page Git Product logo

massgis's Introduction

MassGIS geocoder

Node module to use MassGIS Geocoder automatically fills in the state to Massachussetts.

From the MassGIS site

NOTE: The MassGIS online geocoding services are intended to be used for on-the-fly addresses. If your application has the user type in the address and you don't know it ahead of time, geocode it here. If you have a set (thousands for example) of addresses already in hand, please do not send them to these services without checking with us first. Your pile of addresses can usually be faster and more accurately geocoded using desktop GIS geocoding software. These online geocoding services are shared by many users and applications and need to remain available for all users. Excessive use of geocoding services will be investigated and if the traffic cannot be managed heavy users may need to be excluded.

Usage

var massgis = require('massgis');
massgis({
  address: '123 fake street',
  city: 'somewhere',
  zip: '01234'
  }, function (err, resp) {
    // either an error or
    // a response
});
//response object
var resp = {
  xy: [
    '236334.81846643778',
    '900872.79121378739'
  ],
  ll: [
    '-71.0589493288039',
    '42.357508717168777'
  ],
  address: '24 SCHOOL ST, BOSTON, MA, 02108'
};

response has 3 keys

  • xy which is an array representing projected state plane coordinates for your address.
  • ll which is an array representing longitude latitude coordiantes for your address (with longitute first geojson style).
  • address which is the matched address, it is in all caps because XML is angry.

massgis's People

Contributors

calvinmetcalf avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.