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
#5
Hi,

Not sure if this is still current, but some thoughts...

My inital thoughts relates to long/lat, but I then read your difficulties with this. So in that vain, have you come across the Haversine Formula (I hadn't) but this may help. You take a FULL list of zip codes and use this/ perhaps combined with some alternative API's to remove zip codes from the full list that fall into the same unique area. This may give you a more manageable list, but without tryiing it, I have no idea.

Some links that you may have/have not seen:

http://mcdc.missouri.edu/allabout/zipcodes.html

https://www.zipcodeapi.com/
In particular -> Find Close Zip Codes (https://www.zipcodeapi.com/API#matchClose ) (50 free requests/hour)

The API can take a list of zip codes and match together those that are within a specified distance of each other.

Sounds like a interesting conundrum. Even Quora has been asking thisĀ 

https://www.quora.com/Geolocation-What-i...entire-USA

But I may be covering the same ground as you.

Bass

PS I have just seen this blog, it seems to generate a single number to relate to the geography by combining L&Lat. This may be able to let you feed in all the zip codes and extract those that are 'unique'

http://mitchelsellers.com/blogs/2012/01/...erver.aspx
Reply


Messages In This Thread
RE: Calculate the fewest zip codes, for the largest coverage - by Bass - Mar-23-2017, 01:31 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,647 Jan-13-2022, 05:22 PM
Last Post: ndc85430
  find 2 largest equal numbers Frankduc 13 3,566 Jan-11-2022, 07:10 PM
Last Post: Frankduc
  Largest product in a grid (projecteuler problem11) tragical 1 2,298 Sep-14-2020, 01:03 PM
Last Post: Gribouillis
  Extract the largest value from a group without replacement (beginner) preliator 1 2,089 Aug-12-2020, 01:56 PM
Last Post: DPaul
  frequency of largest number group anshumanmuj 5 3,016 Jun-22-2020, 04:51 PM
Last Post: perfringo
  Sort by the largest number of the same results (frequency) inlovewiththedj 3 2,228 Apr-01-2020, 07:29 AM
Last Post: DPaul
Lightbulb how to get improve coverage while using coverage.py sami23 0 1,488 Jan-22-2020, 10:53 AM
Last Post: sami23
  Find the second largest number DarkCraftPlayz 8 11,366 May-29-2019, 02:46 AM
Last Post: heiner55
  Looking for good doc on Scraping coverage algorithms Larz60+ 0 1,919 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,686 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