TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

If you ever wanted to know the lengths of most US city longitudes & latitudes

4 pointsby cgrusdenabout 13 years ago
Right before I ran a database migration to create the tables to house the lat &#38; long information for US Cities I realized that longitude and latitude strings could never be over 100 characters long. Instead of blindly using 24 characters or even 20, I wanted to know what I was working with for US Cities <i>ONLY</i>.<p>The small gist below shows the very small range of length for the lat &#38; longs.<p>https://gist.github.com/2698035<p>spoiler: It's between 9-11 for latitude, and 11-12 for longitude

1 comment

mapsterabout 13 years ago
I recommend using six decimal places for best accuracy, so 34.100912, -121.187176
评论 #3983925 未加载