Home > Enterprise >  Get a list of zip codes in a given radius using Google Maps
Get a list of zip codes in a given radius using Google Maps

Time:01-28

I have a zip code (or a lat and lng, I have access to either of these 3 pieces of information) and need to get a list of zip codes within a 10 miles radius, I need to accomplish this using Google Maps. I'm using Node. I didn't see any service on the Distance Matrix API that could help me with this, I thought the Geocoder API could work however it only makes a lookup to find the lat and lng but not a proximity search. Any idea on what service I can use to accomplish this?

CodePudding user response:

Not sure if the google API will give you a list of zip codes. You can use other services that are tailored to do just that like Zip Code API there is a specific endpoint (radius) that specifically gets a list of zip codes as response.

CodePudding user response:

i think you are looking for reverse address lookup which can be tested here and used as documented here

  • Related