The API Briefing: How APIs Provide Localized Information – NOAA’s Weather Service Data and FCC’s Broadband Services Map
The two featured APIs this week are excellent demonstrations of personalizing federal government data by where a user lives. Federal agencies collect a considerable amount of community data, from the Census Bureau’s surveys to the FDA’s local agricultural conditions. Thanks to GPS, app developers can locate a user’s immediate geographical location and tailor information based on the latitude and longitude coordinates.
The National Oceanic and Atmospheric Administration has an API that provides current conditions and a four-day forecast by locating the nearest NOAA station to the user’s geographical coordinates. This particular version of the API is available through GitHub and uses the Ruby language. If you would like to use a different language, you can visit the NOAA page for the National Digital Forecast Database and access the XML feed through a Simple Object Access Protocol (SOAP).
The FCC also uses latitude and longitude coordinates to give users information about broadband access in their neighborhood. The user provides his or her mailing address, which is then translated into latitude and longitude. With the proper coordinates, the FCC’s Broadband Services Map API lists the broadband providers and their reported connection speeds. You can try it out by typing your address into the search box at the top of the page and then click the “Find” button. Observe how the data is presented into a graph comparing the various broadband providers and coverage map (using Google maps).
Embedding GPS in smartphones, tablets, and laptops has greatly enhanced our lives and goes beyond just helping us find our way when we travel. By pairing federal APIs with mapping applications, developers can create amazing apps that tell us the best places to live, what’s new at the local farmers markets, and if it will rain today.Each week in “The API Briefing,” I will showcase government APIs and the latest API news and trends. Visit this blog every week to learn how government APIs are transforming government and improving government services for the American people. If you have ideas for a topic or have questions about APIs, please contact me via email.
Dr. William A. Brantley, PMP, is a Program Analyst, in Forecasting and Methods at the U.S. Office of Personnel Management (OPM). You can find out more about his work in this space at BillBrantley.com.