14 APIs for Location Services

Targeting application users by location is a sure-fire way to improve User Experience and engagement.

There are Application Programming Interfaces (APIs) available for integrating location services into applications of all kinds, including adding intelligence for businesses, pinpointing geocoordinates by IP address, time zones, activity tracking, retrieving postal and country codes, arranging meetups, plus providing shipping intelligence, traffic updates, tax rates, mapping, retail deals, micro-weather reports and even indoor GPS coordinates.

Developers looking to create location-aware applications can check out the ProgrammableWeb directory for the best APIs to fit their needs. Here we list the most popular APIs for from our Location category based on ProgrammableWeb website traffic.

1. WorldTime API

The WorldTime APITrack this API returns the local time for a given time zone in either JSON or plain text format. This API can also return information on whether a time zone is currently in Daylight Savings Time (DST), when DST starts and ends, and the UTC offset.

2. GeoDB Cities API

GeoDB REST APITrack this API offers global city and region data. API operations include determining the distance between cities, finding nearby cities, and support for city autocomplete as well as retrieval of city details, countries, country details, region details, currencies, locales, and time-zones. Results are displayable in multiple languages.

3. Google Maps Geolocation API

The Google Maps Geolocation APITrack this API provides developers with tools and Documentation for incorporating geolocation with mobile and WiFi technologies. The Geolocation API specifically returns a location and accuracy radius based on the information of cell towers and WiFi nodes that can then be detected by the mobile client.

4. Sunrise and Sunset Times API

Sunrise-Sunset is a free online service that provides users with information on day length, twilight, sunrise times, and sunset times for any date and location in the world. The Sunrise Sunset Times APITrack this API allows users to retrieve exact sunrise and sunset times for a given latitude and longitude, and if wanted, a specified date.

Get sunset and sunrise times for any location on Earth via this API

Get sunset and sunrise times for any location on Earth via this API. Screenshot: Sunrise-Sunset

5. Google My Business API

The Google My Business APITrack this API allows organizations to manage their business physical address information within Google products, including search results and Google Maps. The API enhances the visibility of the location of a business in Google products, making it suitable for Integration with online advertising apps. Version 3.1 brings real-time push notification for listing updates.

6. Google Maps Geocoding API

The Google Maps Geocoding APITrack this API provides programmatic access to geocoding and reverse geocoding services for addresses. Geocoding converts addresses to geographic coordinates, and reverse geocoding converts coordinates to human-readable addresses. Developers can also use this API to find the address of a given place ID (a place ID is a unique identifier that is used with Google APIs).

7. TripAdvisor Content API

TripAdvisor is a global travel site featuring reviews and advice on hotels, resorts, flights, vacation rentals, vacation packages, travel guides, and more. TripAdvisor's Content APITrack this API allows access to business information on travel destinations. The API returns rich data on ratings, prices, location, and reviews of travel-themed accommodations, restaurants, transportation, hotels, and more. The API is free to use for any developer that requests an API Key and is approved.

8. Discount API

The Discount APITrack this API allows developers to include interesting local deals and discounts on their app or website. These deals come from a variety of sources to ensure that there are options appropriate for many different audiences, and developers can choose what kinds of deals they want to be displayed using a web interface. Deals that match the user's location can be retrieved using the user's IP address, GPS coordinates, or street address.

9. Google Maps Time Zone API

The Google Maps Time Zone APITrack this API allows developers to retrieve time offset data for any location on Earth. Developers can request information for a specific latitude/longitude pair and date, and the API will return the time zone's name, its offset from UTC, and its daylight savings offset. Results are returned in English by default, but other languages are available.

10. IPGeolocation.io API

IPGeolocation APITrack this API allows developers to get geolocation information for a given IP address. Data points returned by this GeoIP API include city, state, province, country, continent, latitude, longitude, region, timezone, current time, organization, ISP, local currency, and country flags. This service can be used for content personalization, geotargeting, geofencing, ad targeting, digital rights management, form auto-completion, etc. There are free and paid plans available.

11. Targetlock API

Targetlock APITrack this API enables users to access postcode/location related API endpoints. The API can get information on all postcodes in the USA using a postcode, all the locations/postcodes for a city and state, and the distance between two postcodes.

12. AccuWeather Locations API

AccuWeather provides real-time weather information for 2.3 million locations around the world. The AccuWeather Locations APITrack this API allows developers to get a location key corresponding with a given location that will allow applications to retrieve weather data from the AccuWeather Forecast and Current Conditions APIs.

13. ClimaCell Micro Weather API

The ClimaCell Micro Weather APITrack this API provides access to high-resolution micro-weather data for locations across the United States. The API supports full geolocation and geo­search capabilities, with hyperlocal weather features such as zoom resolution as low as 300 meters, ground level measurements, 1-minute updates, 90% correlation to ground truth, severe weather alerts, and more.

Climacell API

Screenshot: ClimaCell

14 Bing Maps Location Recognition API

Bing Maps Location Recognition APITrack this API returns a list of entities ranked by their proximity to a given geolocation. The URL response contains three components: local business entities near that location (e.g. restaurants, hotels, office buildings, transit stations, etc.), natural points of interest near that location (e.g. beaches, valleys, etc.), and a reverse geocoded address of that location.

But the APIs listed above are just a small sampling of location resources available on ProgrammableWeb. Please see the Location category for more than 400 APIs, 386 SDKs, and 224 Source Code samples.

Be sure to read the next Location article: Daily API RoundUp: Scrutinizer, Kiva GraphQL, Ipregistry, ExtraHop