Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6668217
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T03:01:02+00:00 2026-05-26T03:01:02+00:00

Is it possible to get the zipcode of a location found using google maps

  • 0

Is it possible to get the zipcode of a location found using google maps api?

Currently it returns the longitude and latitude, but not the zipcode.

I found this for zipcodes: http://www.census.gov/tiger/tms/gazetteer/zips.txt

I was going to write a script to put it in a DB, but I’m unsure the kind of query you’d write to find the nearest result

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T03:01:02+00:00Added an answer on May 26, 2026 at 3:01 am

    One possible solution is to load all of your zipcode data into a table and then, when you need to get the zipcode with the nearest lat/long to the lat/long returned by Google Maps, use the Haversine formula in a query to get the distance between the lat/long from GoogleMaps and the lat/long of the zip codes. You can then select the zip code that is closest to the lat/long returned by Google Maps i.e. the one with the lowest distance from your point of interest.

    Luckily there is just such a query in a previous post.

    NB This will only give you the nearest zipcode in your list for a location. I do not know whether this means that you will get the correct zipcode for your location (I don’t know enough about zipcodes for that!). It should give you something with which to get started though.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is it possible to get notified (without polling, but via an event) when a
Is it possible to get notifications using SQL Server Reporting Services ? Say for
Is it possible get the last visited pages by user using C# / ASP.NET
Possible Duplicate: Get connecting IP from specified ports that using by other program. If
Possible Duplicate: Get content within a html tag using php and replace it after
This question is regarding the google Maps API geocoding, I'm able to geocode an
I am using Google Maps and am creating a set of markers from a
I have three possible HTTP Post returns that I'm trying to get an Array
Possible Duplicate: Get CVS history for a particular user Is it possible to list
Possible Duplicate: Get all files from VSS for a given date? I need to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.