bibanul / tiger-geocoder

US Geocoder module that works on top of TIGER Line data file from US Census bureau
http://www.tigergeocoder.com
60 stars 9 forks source link

reverseGeocode not returning "state" field #6

Closed rdp99 closed 9 years ago

rdp99 commented 9 years ago

Small typo where the state is queried "As st" instead of "As state" and so parseResult isn't picking up the abbreviated state in the response.

This line: https://github.com/bibanul/tiger-geocoder/blob/master/index.js#L251

          "rg.addy[1].streettypeabbrev As styp, rg.addy[1].location As city, rg.addy[1].stateabbrev As st, rg.addy[1].zip "+

Needs to change to:

          "rg.addy[1].streettypeabbrev As styp, rg.addy[1].location As city, rg.addy[1].stateabbrev As state, rg.addy[1].zip "+