Wherever you’re headed, Dowell Coordinates API ensures you arrive with accuracy
The Dowell Coordinates API is a handy tool designed to help you find precise geographic coordinates for any location you need. Whether it’s a city, a region, or even a specific address, this API has got you covered. With just a simple input of the location’s name, like New Delhi, Nairobi, or New York, you can get the latitude and longitude information you need. This makes it super easy to integrate location-based data into your applications.
Using the Dowell Coordinates API is a breeze! Here’s a quick overview of the available endpoints. For more detailed information on each endpoint and how to use them, you can find the complete endpoint list and documentation in the Postman documentation mentioned in Get Started Section.
Use this endpoint to obtain the coordinates for a specific location. Simply provide the name of the location, and the API will return its latitude and longitude.
This endpoint allows you to retrieve regions based on certain criteria. Perfect for when you need to gather information about different geographical areas.
Need information about a specific country? This endpoint has you covered. Provide the country name, and get all the details you need.
This endpoint provides information about all the regions within a specific country. Useful for applications requiring detailed geographical data.
If you have a custom region in mind and need its coordinates, this endpoint is what you need. Simply input the region’s details, and get the coordinates hassle-free.
Looking for regions that match a certain substring? This endpoint will help you find what you need quickly and efficiently.
For detailed API documentation, including endpoint descriptions, request and response examples, and authentication details, please refer to the API documentation
In the following scenarios, Dowell will furnish comprehensive instructions on obtaining the Service key and guide you through the steps to use the API. You’ll find examples in various formats such as Python, PHP, React, Flutter, and WordPress in the tabs below. Feel free to explore the examples in each tab for practical insights.
Dive into Dowell’s Coordinates API and discover how it’s revolutionizing industries! Explore how it enhances real estate listings, connects friends on social networks, optimizes logistics routes, and aids emergency responders. Watch our videos for captivating examples and unleash the power of location-based solutions today!
You can obtain precise geographic coordinates for various locations, including cities, regions, specific addresses, landmarks, and more.
The API returns latitude and longitude coordinates in decimal format.
Yes, you need to include your API key in the request parameters to authenticate and access the API endpoints.
You can use the “Get Countries V3” endpoint to retrieve a list of countries. Simply make a POST request to the specified endpoint with your API key.
Yes, you can use the “Get All Country Regions V3” endpoint to retrieve details about all regions within a specified country.
If you encounter any issues, have questions, or need assistance with Dowell Coordinates API, you can contact the support team for prompt assistance. Contact us at Dowell@dowellresearch.uk
Yes, you can integrate the API with various platforms and programming languages including Python, PHP, React, Flutter, and WordPress. We provide examples in each of these formats for easy integration.
The Dowell database is regularly updated with new location information to ensure accuracy and relevance.
Yes, you can use the Dowell Coordinates API for both personal and commercial purposes after obtaining the necessary API key and adhering to our terms of service.
Dowell UX Living Lab offers a wide range of APIs to enhance user experience and streamline various processes. To explore the full list of APIs available, including Dowell Email, Dowell Newsletter, Samanta Content Evaluator, and many more.
For more details and to explore the complete list of APIs provided by Dowell UX Living Lab, please visit our documentation page.
This code retrieves coordinates for the specified region (Nairobi) by sending a POST request to the given URL with the region name and API key as parameters. Make sure to replace ‘your_api_key’ with your actual API key before running the code
import requests
# Replace 'your_api_key' with your actual API key
api_key = 'your_api_key'
url = 'https://100074.pythonanywhere.com/get-coords/'
# Prepare the payload with the region name and API key
payload = {
"region": "Nairobi", # Specify the region you want to get coordinates for
"api_key": api_key # Provide your API key for authentication
}
# Send a POST request to the API endpoint with the payload
response = requests.post(url, json=payload)
# Print the JSON response from the API
print(response.json())
This Python code fetches information about regions by sending a GET request to a specific URL. It includes an API key as a parameter in the request to authenticate the user. Once the response is received from the API, it is printed in JSON format for further processing.
import requests
# Replace 'your_api_key' with your actual API key
api_key = 'your_api_key'
# The URL of the API endpoint
url = 'https://100074.pythonanywhere.com/regions/'
# Parameters to be sent with the request, including the API key
params = {"api_key": api_key}
# Send a GET request to the API endpoint with the specified parameters
response = requests.get(url, params=params)
# Print the JSON response from the API
print(response.json())
This Python code retrieves information about all the countries stored in the database. It does this by sending a request to a specific URL using the POST method. The API key is included as a parameter in the request to authenticate the user. Once the request is sent, the code prints out the response received from the API in JSON format.
import requests
# Replace 'your_api_key' with your actual API key
api_key = 'your_api_key'
# Define the URL for the API endpoint
url = 'https://100074.pythonanywhere.com/get-countries-v3/'
# Set parameters for the POST request, including the API key
params = {"api_key": api_key}
# Send a POST request to the URL with the specified parameters
response = requests.post(url, params=params)
# Print the JSON response from the API
print(response.json())
This Python code sends a request to an API endpoint to retrieve all regions for a specific country (Italy). Make sure to replace 'your_api_key'
with your actual API key. The request is sent using the requests
library, with the URL of the API endpoint, parameters, and payload. Once the response is received, it prints the JSON data returned by the API.
import requests
# Replace 'your_api_key' with your actual API key
api_key = 'your_api_key'
# URL of the API endpoint
url = 'https://100074.pythonanywhere.com/get-coords-v3/'
# Parameters for the request
params = {"api_key": api_key}
# Data payload for the request
payload = {
"country": "italy", # Specify the country whose regions you want to retrieve
"query": "all" # Specify 'all' to get all regions
}
# Send a POST request to the API endpoint with the provided parameters and payload
response = requests.post(url, params=params, json=payload)
# Print the JSON response from the API
print(response.json())
This code sends a request to an API endpoint to retrieve details for specific regions (Rome and Abano Terme) of a particular country (Italy). It includes your API key for authentication. After preparing the necessary parameters and payload, the code sends a POST request to the provided URL with the country name, query parameter, and a list of regions. Finally, it prints the JSON response received from the API.
import requests
# Replace 'your_api_key' with your actual API key
api_key = 'your_api_key'
url = 'https://100074.pythonanywhere.com/get-coords-v3/'
# Parameters for the API request
params = {"api_key": api_key}
# Payload containing the country name and regions
payload = {
"country": "italy",
"query": "custom",
"regionList": ["Rome", "Abano Terme"]
}
# Sending a POST request to the API endpoint
response = requests.post(url, params=params, json=payload)
# Printing the JSON response
print(response.json())
This endpoint helps you find regions in a country that have a certain word or letters in their names. For example, if you’re looking for regions in Italy with names containing “Ab”, you can use this. Just send a POST request to the given URL with the country name and the substring you’re interested in. Then, you’ll get back information about matching regions.
import requests
# Replace 'your_api_key' with your actual API key
api_key = 'your_api_key'
url = 'https://100074.pythonanywhere.com/get-coords-v4/'
# Parameters for the API request
params = {"api_key": api_key}
# Payload containing the country name, query type, and substring
payload = [{
"country": "italy",
"query": "all",
"subStr": "Ab"
}]
# Sending a POST request to the API endpoint
response = requests.post(url, params=params, json=payload)
# Printing the JSON response
print(response.json())
This PHP code retrieves coordinates for a specified region (Nairobi) by sending a POST request to the provided URL with the region name and API key as parameters.
"Nairobi", // Specify the region you want to get coordinates for
"api_key" => $api_key // Provide your API key for authentication
);
// Send a POST request to the API endpoint with the payload
$response = file_get_contents($url, false, stream_context_create(array(
'http' => array(
'method' => 'POST',
'header' => 'Content-Type: application/json',
'content' => json_encode($payload)
)
)));
// Print the JSON response from the API
echo $response;
?>
This PHP code fetches information about regions by sending a GET request to a specific URL. It includes an API key as a parameter for authentication.
This PHP code retrieves information about all countries stored in the database by sending a POST request to a specific URL.
$api_key);
// Send a POST request to the URL with the specified parameters
$response = file_get_contents($url, false, stream_context_create(array(
'http' => array(
'method' => 'POST',
'header' => 'Content-Type: application/json',
'content' => json_encode($params)
)
)));
// Print the JSON response from the API
echo $response;
?>
This PHP code sends a request to an API endpoint to retrieve all regions for a specific country (Italy).
$api_key);
// Data payload for the request
$payload = array(
"country" => "italy", // Specify the country whose regions you want to retrieve
"query" => "all" // Specify 'all' to get all regions
);
// Send a POST request to the API endpoint with the provided parameters and payload
$response = file_get_contents($url, false, stream_context_create(array(
'http' => array(
'method' => 'POST',
'header' => 'Content-Type: application/json',
'content' => json_encode($payload)
)
)));
// Print the JSON response from the API
echo $response;
?>
This PHP code sends a request to an API endpoint to retrieve details for specific regions (Rome and Abano Terme) of Italy.
$api_key);
// Payload containing the country name and regions
$payload = array(
"country" => "italy",
"query" => "custom",
"regionList" => array("Rome", "Abano Terme")
);
// Sending a POST request to the API endpoint
$response = file_get_contents($url, false, stream_context_create(array(
'http' => array(
'method' => 'POST',
'header' => 'Content-Type: application/json',
'content' => json_encode($payload)
)
)));
// Printing the JSON response
echo $response;
?>
This endpoint helps you find regions in a country that have a certain word or letters in their names. For example, if you’re looking for regions in Italy with names containing “Ab”, you can use this.
$api_key);
// Payload containing the country name, query type, and substring
$payload = array(
array(
"country" => "italy",
"query" => "all",
"subStr" => "Ab"
)
);
// Sending a POST request to the API endpoint
$response = file_get_contents($url, false, stream_context_create(array(
'http' => array(
'method' => 'POST',
'header' => 'Content-Type: application/json',
'content' => json_encode($payload)
)
)));
// Printing the JSON response
echo $response;
?>
This React component fetches coordinates for a specified region (in this case, Nairobi) by sending a POST request to the API endpoint with the region name and API key as parameters.
import React, { useState, useEffect } from 'react';
import axios from 'axios';
// Component for fetching coordinates for a specified region
const GetCoordinates = () => {
// State to hold the coordinates
const [coordinates, setCoordinates] = useState(null);
useEffect(() => {
// Function to fetch coordinates
const fetchCoordinates = async () => {
try {
// Replace 'your_api_key' with your actual API key
const api_key = 'your_api_key';
// URL for the API endpoint
const url = 'https://100074.pythonanywhere.com/get-coords/';
// Payload with the region name and API key
const payload = {
region: 'Nairobi',
api_key: api_key
};
// Sending a POST request to the API endpoint
const response = await axios.post(url, payload);
// Set the coordinates state with the response data
setCoordinates(response.data);
} catch (error) {
console.error('Error fetching coordinates:', error);
}
};
// Call the fetchCoordinates function
fetchCoordinates();
}, []);
return (
{/* Displaying the coordinates */}
{coordinates && (
Coordinates: {coordinates.latitude}, {coordinates.longitude}
)}
);
};
export default GetCoordinates;
This React component fetches information about regions by sending a GET request to the API endpoint. It includes an API key as a parameter to authenticate the user.
import React, { useState, useEffect } from 'react';
import axios from 'axios';
// Component for fetching regions
const GetRegions = () => {
// State to hold the regions
const [regions, setRegions] = useState(null);
useEffect(() => {
// Function to fetch regions
const fetchRegions = async () => {
try {
// Replace 'your_api_key' with your actual API key
const api_key = 'your_api_key';
// URL for the API endpoint
const url = 'https://100074.pythonanywhere.com/regions/';
// Parameters to be sent with the request
const params = { api_key: api_key };
// Sending a GET request to the API endpoint
const response = await axios.get(url, { params });
// Set the regions state with the response data
setRegions(response.data);
} catch (error) {
console.error('Error fetching regions:', error);
}
};
// Call the fetchRegions function
fetchRegions();
}, []);
return (
{/* Displaying the regions */}
{regions && (
{regions.map(region => (
- {region}
))}
)}
);
};
export default GetRegions;
This React component fetches information about all countries stored in the database by sending a request to the provided API endpoint using the POST method. The API key is included as a parameter in the request for authentication.
import React, { useState, useEffect } from 'react';
import axios from 'axios';
// Component for fetching countries
const GetCountries = () => {
// State to hold the countries
const [countries, setCountries] = useState(null);
useEffect(() => {
// Function to fetch countries
const fetchCountries = async () => {
try {
// Replace 'your_api_key' with your actual API key
const api_key = 'your_api_key';
// URL for the API endpoint
const url = 'https://100074.pythonanywhere.com/get-countries-v3/';
// Parameters to be sent with the request
const params = { api_key: api_key };
// Sending a POST request to the API endpoint
const response = await axios.post(url, null, { params });
// Set the countries state with the response data
setCountries(response.data);
} catch (error) {
console.error('Error fetching countries:', error);
}
};
// Call the fetchCountries function
fetchCountries();
}, []);
return (
{/* Displaying the countries */}
{countries && (
{countries.map(country => (
- {country}
))}
)}
);
};
export default GetCountries;
This React component sends a request to an API endpoint to retrieve all regions for a specific country (in this case, Italy). The API key is included for authentication. Once the response is received, it prints the JSON data returned by the API.
import React, { useState, useEffect } from 'react';
import axios from 'axios';
// Component for fetching all regions of a country
const GetAllCountryRegions = () => {
// State to hold the regions
const [regions, setRegions] = useState(null);
useEffect(() => {
// Function to fetch regions
const fetchRegions = async () => {
try {
// Replace 'your_api_key' with your actual API key
const api_key = 'your_api_key';
// URL for the API endpoint
const url = 'https://100074.pythonanywhere.com/get-coords-v3/';
// Parameters to be sent with the request
const params = { api_key: api_key };
// Payload for the request
const payload = {
country: 'Italy', // Specify the country whose regions you want to retrieve
query: 'all' // Specify 'all' to get all regions
};
// Sending a POST request to the API endpoint
const response = await axios.post(url, payload, { params });
// Set the regions state with the response data
setRegions(response.data);
} catch (error) {
console.error('Error fetching regions:', error);
}
};
// Call the fetchRegions function
fetchRegions();
}, []);
return (
{/* Displaying the regions */}
{regions && (
{regions.map(region => (
- {region}
))}
)}
);
};
export default GetAllCountryRegions;
This React component sends a request to an API endpoint to retrieve details for specific regions (in this case, Rome and Abano Terme) of a particular country (in this case, Italy). The API key is included for authentication.
import React, { useState, useEffect } from 'react';
import axios from 'axios';
// Component for fetching custom country region coordinates
const GetCustomCountryRegionCoordinates = () => {
// State to hold the coordinates
const [coordinates, setCoordinates] = useState(null);
useEffect(() => {
// Function to fetch coordinates
const fetchCoordinates = async () => {
try {
// Replace 'your_api_key' with your actual API key
const api_key = 'your_api_key';
// URL for the API endpoint
const url = 'https://100074.pythonanywhere.com/get-coords-v3/';
// Parameters to be sent with the request
const params = { api_key: api_key };
// Payload for the request
const payload = {
country: 'Italy',
query: 'custom',
regionList: ['Rome', 'Abano Terme']
};
// Sending a POST request to the API endpoint
const response = await axios.post(url, payload, { params });
// Set the coordinates state with the response data
setCoordinates(response.data);
} catch (error) {
console.error('Error fetching coordinates:', error);
}
};
// Call the fetchCoordinates function
fetchCoordinates();
}, []);
return (
{/* Displaying the coordinates */}
{coordinates && (
Coordinates: {coordinates.latitude}, {coordinates.longitude}
)}
);
};
export default GetCustomCountryRegionCoordinates;
This React component helps you find regions in a country (in this case, Italy) that have a certain word or letters in their names. For example, if you’re looking for regions with names containing “Ab,” you can use this component. It sends a request to the API endpoint with the country name and the substring you’re interested in. Then, it displays information about matching regions.
import React, { useState, useEffect } from 'react';
import axios from 'axios';
// Component for fetching regions by substring
const GetRegionsBySubstring = () => {
// State to hold the regions
const [regions, setRegions] = useState(null);
useEffect(() => {
// Function to fetch regions
const fetchRegions = async () => {
try {
// Replace 'your_api_key' with your actual API key
const api_key = 'your_api_key';
// URL for the API endpoint
const url = 'https://100074.pythonanywhere.com/get-coords-v4/';
// Parameters to be sent with the request
const params = { api_key: api_key };
// Payload for the request
const payload = [{
country: 'Italy',
query: 'all',
subStr: 'Ab'
}];
// Sending a POST request to the API endpoint
const response = await axios.post(url, payload, { params });
// Set the regions state with the response data
setRegions(response.data);
} catch (error) {
console.error('Error fetching regions:', error);
}
};
// Call the fetchRegions function
fetchRegions();
}, []);
return (
{/* Displaying the regions */}
{regions && (
{regions.map(region => (
- {region}
))}
)}
);
};
export default GetRegionsBySubstring;
This Flutter code snippet demonstrates how to retrieve coordinates for a specified region, such as Nairobi, by sending a POST request to the Dowell Coordinates API endpoint. The payload includes the region name and API key for authentication. Once the response is received, it can be further processed as needed.
import 'package:http/http.dart' as http;
import 'dart:convert';
// Replace 'your_api_key' with your actual API key
String apiKey = 'your_api_key';
String url = 'https://100074.pythonanywhere.com/get-coords/';
// Function to fetch coordinates for a specified region
Future getCoordinates() async {
// Prepare payload with the region name and API key
Map payload = {
"region": "Nairobi", // Specify the region you want coordinates for
"api_key": apiKey // Provide your API key for authentication
};
// Send a POST request to the API endpoint with the payload
http.Response response = await http.post(Uri.parse(url), body: json.encode(payload));
// Print the JSON response from the API
print(json.decode(response.body));
}
This Flutter code snippet illustrates how to retrieve information about regions by sending a GET request to the Dowell Coordinates API endpoint. The request includes the API key as a parameter for authentication. Upon receiving the response, it can be parsed and processed accordingly.
import 'package:http/http.dart' as http;
import 'dart:convert';
// Replace 'your_api_key' with your actual API key
String apiKey = 'your_api_key';
String url = 'https://100074.pythonanywhere.com/regions/';
// Function to fetch information about regions
Future getRegions() async {
// Parameters to be sent with the request, including the API key
Map params = {"api_key": apiKey};
// Send a GET request to the API endpoint with the specified parameters
http.Response response = await http.get(Uri.parse(url), headers: params);
// Print the JSON response from the API
print(json.decode(response.body));
}
This Flutter code snippet showcases how to retrieve information about all countries stored in the database by sending a POST request to the Dowell Coordinates API endpoint. The API key is included as a parameter for authentication. Upon receiving the response, it can be parsed and processed accordingly.
import 'package:http/http.dart' as http;
import 'dart:convert';
// Replace 'your_api_key' with your actual API key
String apiKey = 'your_api_key';
String url = 'https://100074.pythonanywhere.com/get-countries-v3/';
// Function to fetch information about all countries
Future getCountries() async {
// Parameters for the POST request, including the API key
Map params = {"api_key": apiKey};
// Send a POST request to the URL with the specified parameters
http.Response response = await http.post(Uri.parse(url), body: params);
// Print the JSON response from the API
print(json.decode(response.body));
}
This Flutter code snippet demonstrates how to retrieve all regions for a specific country, such as Italy, by sending a POST request to the Dowell Coordinates API endpoint. The payload includes the country name and a query parameter to specify that all regions should be fetched. Upon receiving the response, it can be parsed and processed accordingly.
import 'package:http/http.dart' as http;
import 'dart:convert';
// Replace 'your_api_key' with your actual API key
String apiKey = 'your_api_key';
String url = 'https://100074.pythonanywhere.com/get-coords-v3/';
// Function to fetch all regions for a specific country
Future getAllCountryRegions() async {
// Parameters for the request
Map params = {"api_key": apiKey};
// Data payload for the request
Map payload = {
"country": "italy", // Specify the country to retrieve regions for
"query": "all" // Specify 'all' to get all regions
};
// Send a POST request to the API endpoint with the provided parameters and payload
http.Response response = await http.post(Uri.parse(url), body: json.encode(payload), headers: params);
// Print the JSON response from the API
print(json.decode(response.body));
}
This Flutter code snippet showcases how to retrieve details for specific regions, such as Rome and Abano Terme, of a particular country, such as Italy, by sending a POST request to the Dowell Coordinates API endpoint. The payload includes the country name and a list of regions to fetch. Upon receiving the response, it can be parsed and processed accordingly.
import 'package:http/http.dart' as http;
import 'dart:convert';
// Replace 'your_api_key' with your actual API key
String apiKey = 'your_api_key';
String url = 'https://100074.pythonanywhere.com/get-coords-v3/';
// Function to fetch details for specific regions of a country
Future getCustomCountryRegionCoordinates() async {
// Parameters for the API request
Map params = {"api_key": apiKey};
// Payload containing the country name and regions
Map payload = {
"country": "italy",
"query": "custom",
"regionList": ["Rome", "Abano Terme"]
};
// Sending a POST request to the API endpoint
http.Response response = await http.post(Uri.parse(url), body: json.encode(payload), headers: params);
// Printing the JSON response
print(json.decode(response.body));
}
This Flutter code snippet illustrates how to find regions in a country, such as Italy, that contain a certain substring (e.g., “Ab”) in their names. It sends a POST request to the Dowell Coordinates API endpoint with the country name and the substring of interest. Upon receiving the response, it can be parsed and processed accordingly.
import 'package:http/http.dart' as http;
import 'dart:convert';
// Replace 'your_api_key' with your actual API key
String apiKey = 'your_api_key';
String url = 'https://100074.pythonanywhere.com/get-coords-v4/';
// Function to find regions in a country with names containing a certain substring
Future getRegionsBySubstring() async {
// Parameters for the API request
Map params = {"api_key": apiKey};
// Payload containing the country name, query type, and substring
List
Set up the Dowell Coordinates API name and the base url. It's a prerequisite to have WP-GET API installed in your wordpress API.
Step 1: Set up the api endpoint and the request body. The endpoint should have the api key and request body should have the necessary body post fields
Step 2: Test endpoint to get Json Response from the API.
Step 1: Set up the api endpoint and the Query String. The Query String should have the api key.
Step 2: Test endpoint to get Json Response from the API.
Step 1: Set up the api endpoint and the Request body and Query String. The Query String should have the api key and request body should have the necessary body post fields as shown below.
Step 2: Test endpoint to get Json Response from the API.
Step 1: Set up the api endpoint and the Request body and Query String. The Query String should have the api key and request body should have the necessary body post fields as shown below.
Step 2: Test endpoint to get Json Response from the API.
Step 1: Set up the api endpoint and the Request body and Query String. The Query String should have the api key and request body should have the necessary body post fields as shown below.
Step 2: Test endpoint to get Json Response from the API.
Step 1: Set up the api endpoint and the Request body and Query String. The Query String should have the api key and request body should have the necessary body post fields as shown below.
Step 2: Test endpoint to get Json Response from the API.
D’Well Research validates and explores each stage of open innovation using user experience research from the field to support user-centered product design of medium and large companies globally.