Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

How'd you get the state borders? That's exactly what I need.


http://www.gadm.org/

That has the administrative boundaries for every country.

The relevant project from the US government itself is here: https://www.census.gov/geo/maps-data/data/tiger.html

You might want to run a simplifying algorithm on the shapes first though, they're the official boundary coordinates so there's an absurd number of points on coastlines and the like, making point-in-polygon lookups very slow.

It has the stuff for doing your own geocoding as well. You can install it as a postgis extension and run geocoding SQL queries in postgres. It's an absolute joy.


Probably an easier solution, but I edited globe.js in the JS Console to use one with the state borders[1] that I found found used on another globe

[1]: https://s3.amazonaws.com/SocialHarvest/world.jpg


submit a PR?


I demand Kenya province borders too, then.




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: