geoip-lite / node-geoip

Native NodeJS implementation of MaxMind's GeoIP API -- works in node 0.6.3 and above, ask me about other versions
https://npmjs.org/package/geoip-lite
Other
2.3k stars 354 forks source link

Feature Request: Zip/Postal Code #51

Open guice opened 10 years ago

guice commented 10 years ago

I just noticed zip code isn't parsed out from the City dat. It should be there for requests. I don't know if it's under Postal Code or Zip Code. But should be there for located cities.

0radek commented 7 years ago

Is there a update on this? Curious to know.

hotdang-ca commented 6 years ago

geodata.zip = locBuffer.readInt32BE((locId * locRecordSize) + 16); on lib/geoip.js:110 for ipv4. It looks like ipv6 also includes zip, I'll open a PR for that.