Where to get geography data? - geography

I need geography data for new website.
Data required is
States (With names and standard abbreviations)
ZipCode (List of zip code with all available data like where zipcode belongs to)
What would be my best source to get this data?
Any help is appreciated.
Thanks for all answers,
Sorry i went offline for fewdays. Yes i am talking about US zipcode data.
I think postal service data most reliable I will go with that.
Other alternative mentioned has similar and in better format data. but i think going with postal service will be the best option

(US assumed, "zip code" sort of implies the US 5-digit code, whereas "postal code" is the generic term)
States and their abbreviations are easy, it's on the Postal Service website. (including Guam & other parts of the US that aren't states)
Zip codes: the Postal Service would be the authority in question, but it looks like they don't offer the basic database of zipcode <-> town, other than through an interactive one-by-one lookup. They do offer street-level zipcode databases and other information for $ale. However the Census Bureau has a nearly identical set of information available. (ZCTA = ZIP Code Tabulation Areas) This has also been prepackaged more easily in a Sourceforge project (in their forum they claim this is from the Census Bureau data).

For postal codes Maxmind Free Postalcode Database is the most comprehensive freely available list I know of.
For a list of countries with names and ISO ALPHA-3 codes see Countries or areas, codes and abbreviations.
Of course there is Wikipedia with a list and some pointers to other useful resources Wikipedia - List of Countries

Here's a torrent that might help: http://www.mininova.org/tor/761374
I believe it's legal since it's just geographic data that's publicly available. Also, if you're looking for an access database: http://databases.about.com/od/access/a/zipcodedatabase.htm

For what country? Australia Post has a downloadable file with all the data you're after here. Seems like the sort of thing postal services in other countries would also provide.
Edit: was just listening to .NET Rocks no. 437 and Bob Beauchemin mentions most of this data is available at census.gov

I assume you're talking about the US (if you need states and zip codes...).
The TIGER/Line data is freely available. Not sure if it includes zip codes etc, but worth a look, since it's in the public domain.
Or you can check data.geocomm.com. I don't know what the exact legal status of that is though.

Related

Is there any way to track covid 19 confirmed cases by zipcode or addresses API

I would like to know if there is any API outhere with specific information about confirming cases that you could filter by zipcode or addresses?
The C3.ai COVID-19 Data Lake currently doesn't contain data by zip code or address. We do, however, have FIPS codes for some OutbreakLocations as described in the documentation: https://c3.ai/covid-19-api-documentation/#tag/OutbreakLocation
We'll look at including this type of data in the data lake.
It is not an API, but the Johns Hopkins github data goes down to the country -> state -> county levels.
You can write a chronjob to trigger a daily git pull and maintain your own locally updated data repo of sorts.
Other helpful code you might like: You can use the following code provided by covid19calc.org to help roll it up to various levels of aggregation. Note this pulls data from the most recent day in the data set. Check the IO_Serializer code for more specifics.

CSV list of all universities - google maps

I have a CSV list of university names around the world - about 13,000 university names. I'm looking for a way to pull the addresses of these universities. Google Maps API / Google Places API looks promising, but requires lat/long to map the locations.
End game is to mark to each school as a 1 if the school is in the US, and 0 if the school is outside of the US.
Any thoughts on how to search these colleges in maps and pull out the addresses - or at least the country?
Example:
is there nothing else in the csv, only the names? that's going to make it hard, i'd bet the names aren't always unique in the world.
you could write something that had different passes at biting the apple - for instance, if the university has a state name in it, check those off as 1's - then find another logic to use to take "another bit" until the apple is gone.
On top of #WEBjuju's answer, since you only want to mark if the school is in US, or outside of US, you can use the "country" type in Place Types in the Google Places API, by setting the option as country='us'.
https://developers.google.com/places/supported_types?csw=1#table2
You may also want to cross check with this list of schools.
https://www.4icu.org/reviews/index2.htm
https://en.wikipedia.org/wiki/Lists_of_universities_and_colleges_by_country

Travel APIs how to integrate them all?

I may start working on a project very similar to Hipmunk.com, where it pulls the hotel cost information by calling different APIs (like expedia, orbitz, travelocity, hotels.com etc)
I did some research on this, but I am not able to find any unique hotel id or any field to match the hotels between several API's. Anyone have experience on how can to compare the hotel from expedia with orbitz or travelcity etc?
Thanks
EDIT: Google also doing the same thing http://www.google.com/hotelfinder/
From what I have seen of GDS systems, and these API's there is rarely a unique identifier between systems for e.g. hotels
Airports, airlines and countries have unique ISO identifiers: http://www.iso-code.com/airports.2.html
I would guess you are going to have to have your own internal mapping to identify and disambiguate the properties.
:|
When you get started with hotel APIs, the choice of free ones isn't really that big, see e.g. here for an overview.
The most extensive and accessible one is Expedia's EAN http://developer.ean.com/ which includes Sabre and Venere with unique IDs but still each structured differently.
That is, you are looking into different database tables.
You do get several identifies such as Name, Address, and coordinates, which can serve for unique identification, assuming they are free of errors. Which is an assumption.

Does anyone know of a service/db I can use for businesses and geocode?

I was wondering how and where companies like Foursquare/Gowalla find and keep up to date their list of location/businesses.
Is it a web service? Do they buy a directory and enter it into a database?
This is from a comment I found at http://www.quora.com/Where-or-how-does-a-company-like-Foursquare-get-a-directory-of-all-locations-and-their-addresses
Companies usually get place data from one of the following:
Data licenses: Companies like Localeze, InfoUSA, Amacai etc.
license location data: Big players like TeleAtlas and Navteq serve as global aggregators of this data. There are also lots of small niche players that license e.g. restaurant data only, or ATM data only, on a per country basis.
Crowd Sourcing. Some companies crowd source their data. Open Data Sets. There are
some data sets with a creative commons or other license from which location related data can be extracted. E.g. GeoCommons and Wikipedia. APIs. A number of companies provides APIs by which you can access data on the fly. This include GeoAPI.com, Google, Yelp and others.
In general, this data is fragmented both in type (e.g. POI vs neighborhood or geocode) and place (US vs UK vs South Africa vs Wherever)
Google has a geocoding service that's freely available for personal use.
For business use, it costs a few$, but it's still pretty reasonable.
And the API is pretty straightforward
http://code.google.com/apis/maps/documentation/javascript/v2/services.html

retrieving a updated list of countries states and cities in a website

I'm trying to create a User Registration page in ASP.NET and wondering what
is the best way to get the list of up-to-date Countries and Cities? Are
there any Web Services on the web that I can use to retrieve such
information? If not, what are the options?
Please, any suggestions and pointers will be very much appreciated
How about this? http://www.maxmind.com/app/web_services_country_usage
I have not tried it myself though.
You can check angrymonkeycloud.com/geography to get full list of countries and their states (subdivision).
You can even get countries primary language and currency to set it as your users default settings.
There are a lot of sources for the information on complete lists of countries and major cities. The United Nations Statistics Division's annual demographic yearbook has a list of major cities > 100K population in CSV format:
http://unstats.un.org/unsd/demographic/products/dyb/dyb2012/Table08.xls
The CIA World Factbook also has a list of major cities in the world at:
https://www.cia.gov/library/publications/the-world-factbook/fields/2219.html
They also keep a list of bitmap images for the corresponding country flags:
https://www.cia.gov/library/publications/the-world-factbook/docs/flagsoftheworld.html
I also keep a large links and copies of these types of datasets in our own custom CSV format at this URL:
http://www.opengeocode.org/cude1.1/index.php
Yes I worked for an organization that used this: http://www.iso.org/iso/country_codes/iso_3166_code_lists/english_country_names_and_code_elements.htm for countries; there are other sources too that are valid that I can't currently find. There are state code lists but I haven't seen city. I've not seen any web services offerings; the one listed below was news to me...
We typically attempted to standardize with these codes, loaded them into a database, and even had a central database with these values that other DB's referenced too.
HTH.

Resources