
Orange WiFi hotspots locator
TransportationThe Orange Wifi Locator API allows developers to fetch information about more than 4 millions Wifi hotspots for Orange, Orange affiliates and Orange Community Wifi in metropolitan France. Search is based on a circular area: all the hotspots located within a circle relevant to the given latitude and longitude coordinates. Circle radius is 1000 meters by default and is customizable.
📚 Documentation & Examples
Everything you need to integrate with Orange WiFi hotspots locator
🚀 Quick Start Examples
// Orange WiFi hotspots locator API Example
const response = await fetch('https://developer.orange.com/apis/wifi-locator', {
method: 'GET',
headers: {
'Content-Type': 'application/json'
}
});
const data = await response.json();
console.log(data);
Using Orange WiFi Locator API with JavaScript
If you're looking to integrate Orange's WiFi Locator API into your JavaScript project, you're in the right place. This API will allow you to find WiFi hotspots in a given location, making it easy for users to stay connected on the go.
Getting Started
To get started with the Orange WiFi Locator API, you'll need to obtain an API key. You can do this by signing up for a developer account on the Orange Developer portal, and then creating a new project.
Once you have your API key, you'll be able to make requests to the API endpoints using JavaScript. Here are some examples to get you started:
Example Requests
Find WiFi hotspots in a given location
const url = 'https://api.orange.com/orangewifi/v1/hotspots';
const headers = {
'Authorization': `Bearer ${your_api_key}`,
'Content-Type': 'application/json',
};
async function getHotspotsByLocation(latitude, longitude, radius) {
const params = {
latitude,
longitude,
radius,
};
const queryParams = new URLSearchParams(params);
const response = await fetch(`${url}?${queryParams}`, { headers });
const data = await response.json();
return data;
}
getHotspotsByLocation(48.8584, 2.2945, 500)
.then(data => console.log(data))
.catch(error => console.error(error));
This code will fetch all WiFi hotspots within a 500m radius of the Eiffel Tower in Paris, France.
Find WiFi hotspots by address
const url = 'https://api.orange.com/orangewifi/v1/hotspots/byaddress';
const headers = {
'Authorization': `Bearer ${your_api_key}`,
'Content-Type': 'application/json',
};
async function getHotspotsByAddress(address) {
const params = {
address,
};
const queryParams = new URLSearchParams(params);
const response = await fetch(`${url}?${queryParams}`, { headers });
const data = await response.json();
return data;
}
getHotspotsByAddress('5 Avenue Anatole France, 75007 Paris, France')
.then(data => console.log(data))
.catch(error => console.error(error));
This code will fetch all WiFi hotspots near the Louvre Museum in Paris, France.
Conclusion
The Orange WiFi Locator API is a powerful tool that can help you provide better connectivity options to your users. With JavaScript, you can easily integrate this API into your web or mobile project. We hope these examples have been helpful in getting you started. Happy coding!
📊 30-Day Uptime History
Daily uptime tracking showing online vs offline minutes