Python Forum
Calculate the fewest zip codes, for the largest coverage
Thread Rating:
  • 1 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Calculate the fewest zip codes, for the largest coverage
#4
One way to do this is to use the us Census Bureau GeoCoder.
The main site is here: https://geocoding.geo.census.gov/
You can submit an address batch file if you want to do it by street
addresses (if you don't know latitude and longtitude, which by the way
can be calculated if you know center lat and lon,  distance from center
and angle to point.

Given that information, you will receive:
Output:
Counties: OID: 27590286621899 STATE: 33 FUNCSTAT: A AREAWATER: 177190123 NAME: Belknap County LSADC: 06 CENTLON: -071.4224504 BASENAME: Belknap INTPTLAT: +43.5191091 COUNTYCC: H1 MTFCC: G4020 COUNTY: 001 GEOID: 33001 CENTLAT: +43.5179017 INTPTLON: -071.4253661 AREALAND: 1040130770 COUNTYNS: 00873174 OBJECTID: 3195
Here's a document that explains the whole process: https://www.census.gov/mso/www/training/...-13-16.pdf
And another for finding lat and long from bearing and distance from a point: http://www.movable-type.co.uk/scripts/latlong.html

You can also download all of the raw data (Tiger files) if you want to do it all yourself.
But a lot easier to use the api.
Reply


Messages In This Thread
RE: Calculate the fewest zip codes, for the largest coverage - by Larz60+ - Mar-07-2017, 07:15 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
Question Help to find the largest int number in a file directory SalzmannNicholas 1 1,671 Jan-13-2022, 05:22 PM
Last Post: ndc85430
  find 2 largest equal numbers Frankduc 13 3,678 Jan-11-2022, 07:10 PM
Last Post: Frankduc
  Largest product in a grid (projecteuler problem11) tragical 1 2,323 Sep-14-2020, 01:03 PM
Last Post: Gribouillis
  Extract the largest value from a group without replacement (beginner) preliator 1 2,112 Aug-12-2020, 01:56 PM
Last Post: DPaul
  frequency of largest number group anshumanmuj 5 3,045 Jun-22-2020, 04:51 PM
Last Post: perfringo
  Sort by the largest number of the same results (frequency) inlovewiththedj 3 2,244 Apr-01-2020, 07:29 AM
Last Post: DPaul
Lightbulb how to get improve coverage while using coverage.py sami23 0 1,503 Jan-22-2020, 10:53 AM
Last Post: sami23
  Find the second largest number DarkCraftPlayz 8 11,420 May-29-2019, 02:46 AM
Last Post: heiner55
  Looking for good doc on Scraping coverage algorithms Larz60+ 0 1,930 Jan-05-2019, 03:22 PM
Last Post: Larz60+
  How to use python to do "for each 365 data, print the largest 18 value? ctliaf 1 2,727 Apr-28-2018, 08:14 PM
Last Post: snippsat

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020