What3Words

What3Words

Geocoding

Three words as rememberable and unique coordinates worldwide

Visit API

📚 Documentation & Examples

Everything you need to integrate with What3Words

🚀 Quick Start Examples

What3Words Javascript Examplejavascript
// What3Words API Example
const response = await fetch('https://what3words.com', {
    method: 'GET',
    headers: {
        'Content-Type': 'application/json'
    }
});

const data = await response.json();
console.log(data);

The Three Words API provides a groundbreaking way to identify locations around the globe using unique, memorable three-word addresses. With the increasing reliance on precise location data in various applications—from delivery services to travel guides—this API offers an innovative solution that makes it easier for users to remember and communicate geographical coordinates. By utilizing the power of word combinations, it transforms complex GPS coordinates into approachable and user-friendly identifiers, greatly enhancing location sharing and navigation experiences.

Integrating the Three Words API comes with numerous advantages, making it an essential tool for developers looking to enhance their applications. Here are some benefits of using this API:

  • Simplifies communication of locations by using memorable three-word phrases.
  • Increases accuracy in navigation and delivery applications.
  • Reduces errors associated with traditional latitude and longitude coordinates.
  • Enhances user experience with an intuitive addressing system.
  • Supports a wide range of languages, making it accessible globally.

Here’s a JavaScript code example for calling the Three Words API:

const fetch = require('node-fetch');

const apiKey = 'YOUR_API_KEY';
const url = 'https://api.what3words.com/v3/convert-to-3word';

async function getThreeWords(latitude, longitude) {
    try {
        const response = await fetch(`${url}?coordinates=${latitude},${longitude}&key=${apiKey}`);
        const data = await response.json();
        if (response.ok) {
            console.log(`Three words for the location: ${data.words}`);
        } else {
            console.error(`Error: ${data.message}`);
        }
    } catch (error) {
        console.error('Fetch error: ', error);
    }
}

// Example usage:
getThreeWords(51.521251, -0.202353);
🔒

Security Assessment

F
🔒HTTPS
Enabled
SSL Grade: T
🛡️Headers
0/100
🕒Last Assessed
1 months ago
ℹ️Click for detailed analysis

📊 30-Day Uptime History

Daily uptime tracking showing online vs offline minutes

Jul 2Jul 4Jul 6Jul 8Jul 10Jul 12Jul 14Jul 16Jul 18Jul 20Jul 22Jul 24Jul 26Jul 28Jul 3104008001440Minutes
Online
Offline

Related APIs in Geocoding