Developers can use the Senegal Location API to create geolocation-based services that bring value to their users. For example, they can use the API to create transportation applications that match passengers with drivers based on their location. They can also use the API to create delivery services that accurately locate customers and deliver products to their doorstep.
Senegal Location API can also be used to create weather applications that provide users with accurate and up-to-date weather information based on their location. Developers can also use the API to create maps and navigation applications that provide users with turn-by-turn directions to their destination.
Senegal Location API is easy to integrate into existing applications and can be accessed via RESTful APIs. Developers can choose their preferred programming language, such as Java, Python, Ruby or PHP, and use the API to retrieve location data.
In addition to providing location data, this API also offers developers access to various location-based services, such as reverse geocoding. Reverse geocoding is the process of converting longitude and latitude coordinates into an address. Geofencing is the process of creating a virtual boundary around a specific location, and developers can use this feature to trigger location-based notifications, alerts or actions.
In conclusion, is a powerful tool for developers who want to create location-based services for the Senegal market. The API provides accurate and up-to-date location data, as well as access to a wide variety of location-based services and advanced features. With the Senegal Location API, developers can create innovative and useful applications that deliver value to users and drive business growth.
It will receive parameters and provide you with a JSON.
Cab services: Developers can use the Senegal Location API to provide destination information for drivers and passengers of the transportation service.
Delivery services: Can be used to track the location of delivery drivers and optimize delivery routes to save time and fuel costs.
E-commerce: Senegal Location API can be used to verify delivery addresses.
Real Estate:Can be used to provide location-based property listings.
Advertising and marketing: Can be used to deliver location-based advertising and marketing campaigns to users.
Besides the number of API calls, there is no other limitation.
To use this endpoint you must indicate the latitude and longitude of the 2 locations and the type of distance measurement km, mi, yd and ft.
Get Senegal distance - Endpoint Features
| Object | Description |
|---|---|
lat1 |
[Required] |
lon1 |
[Required] |
lat2 |
[Required] |
lon2 |
[Required] |
unit |
Optional |
{
"distance": "190.46km",
"duration": "2h 38min",
"unit": "km"
}
curl --location --request GET 'https://zylalabs.com/api/1931/senegal+location+api/1651/get+senegal+distance?lat1=14.14129812&lon1=-16.0755888102151&lat2=14.693422&lon2=-17.447935&unit=km' --header 'Authorization: Bearer YOUR_API_KEY'
To use this endpoint all you have to do is to insert in the parameters the latitude, longitude of 2 locations with their unit of measure km and mi.
Get Senegal route - Endpoint Features
| Object | Description |
|---|---|
start_lat |
[Required] |
start_lon |
[Required] |
end_lat |
[Required] |
end_lon |
[Required] |
distance_unit |
Optional |
{
"distance": "190.46km",
"duration": "2h 38min",
"steps": [
{
"direction": "depart",
"distance": "0.28km",
"duration": "0min:41s",
"instruction": "",
"location": [
-16.074948,
14.141293
]
},
{
"direction": "turn",
"distance": "0.15km",
"duration": "0min:12s",
"instruction": "",
"location": [
-16.074947,
14.138792
]
},
{
"direction": "roundabout",
"distance": "0.03km",
"duration": "0min:4s",
"instruction": "",
"location": [
-16.076284,
14.138841
]
},
{
"direction": "exit roundabout",
"distance": "49.26km",
"duration": "47min:39s",
"instruction": "",
"location": [
-16.076475,
14.138834
]
},
{
"direction": "turn",
"distance": "7.63km",
"duration": "7min:34s",
"instruction": "",
"location": [
-16.464434,
14.344348
]
},
{
"direction": "new name",
"distance": "6.62km",
"duration": "5min:33s",
"instruction": "",
"location": [
-16.527001,
14.371047
]
},
{
"direction": "new name",
"distance": "36.89km",
"duration": "34min:54s",
"instruction": "",
"location": [
-16.572222,
14.407216
]
},
{
"direction": "off ramp",
"distance": "1.60km",
"duration": "2min:7s",
"instruction": "",
"location": [
-16.903589,
14.430608
]
},
{
"direction": "merge",
"distance": "86.60km",
"duration": "57min:25s",
"instruction": "",
"location": [
-16.911053,
14.437686
]
},
{
"direction": "off ramp",
"distance": "0.42km",
"duration": "0min:33s",
"instruction": "",
"location": [
-17.442147,
14.701305
]
},
{
"direction": "rotary",
"distance": "0.03km",
"duration": "0min:1s",
"instruction": "",
"location": [
-17.443896,
14.698164
]
},
{
"direction": "exit rotary",
"distance": "0.38km",
"duration": "0min:24s",
"instruction": "",
"location": [
-17.444109,
14.698083
]
},
{
"direction": "rotary",
"distance": "0.06km",
"duration": "0min:4s",
"instruction": "",
"location": [
-17.447158,
14.698289
]
},
{
"direction": "exit rotary",
"distance": "0.52km",
"duration": "0min:46s",
"instruction": "",
"location": [
-17.44736,
14.698115
]
},
{
"direction": "arrive",
"distance": "0.00km",
"duration": "0min:0s",
"instruction": "",
"location": [
-17.447646,
14.693409
]
}
]
}
curl --location --request GET 'https://zylalabs.com/api/1931/senegal+location+api/1654/get+senegal+route?start_lat=14.14129812&start_lon=-16.0755888102151&end_lat=14.693422&end_lon=-17.447935&distance_unit=km' --header 'Authorization: Bearer YOUR_API_KEY'
| Header | Description |
|---|---|
Authorization
|
[Required] Should be Bearer access_key. See "Your API Access Key" above when you are subscribed. |
No long-term commitment. Upgrade, downgrade, or cancel anytime. Free Trial includes up to 50 requests.
The "Get Senegal distance" endpoint returns distance and duration between two locations, while the "Get Senegal route" endpoint provides detailed route information, including step-by-step directions, distances, durations, and specific instructions for navigation.
Key fields in the "Get Senegal distance" response include "distance," "duration," and "unit." In the "Get Senegal route" response, important fields are "distance," "duration," "steps," and each step contains "direction," "distance," "duration," and "location."
Both endpoints require latitude and longitude for two locations. The "Get Senegal distance" endpoint also accepts a distance measurement type (km, mi, yd, ft), while the "Get Senegal route" endpoint specifies the unit of measure (km, mi).
The response data is structured in JSON format. The "Get Senegal distance" returns a simple object with distance and duration, while the "Get Senegal route" returns an object containing overall distance and duration, along with an array of steps detailing the route.
The Senegal Location API sources its data from various geolocation databases and mapping services, ensuring comprehensive coverage of Senegal's geography and infrastructure for accurate location-based services.
Typical use cases include transportation apps for cab services, delivery tracking for logistics, e-commerce address verification, and real estate applications for property listings based on location.
Users can customize requests by specifying different latitude and longitude coordinates for various locations and selecting the desired distance measurement unit for the "Get Senegal distance" endpoint.
Users can leverage the distance and duration data for route optimization in transportation apps, while the step-by-step instructions can enhance navigation features in mapping applications, providing users with clear directions.
Please have a look at our Refund Policy: https://zylalabs.com/terms#refund
To obtain your API key, you first need to sign in to your account and subscribe to the API you want to use. Once subscribed, go to your Profile, open the Subscription section, and select the specific API. Your API key will be available there and can be used to authenticate your requests.
You can’t switch APIs during the free trial. If you subscribe to a different API, your trial will end and the new subscription will start as a paid plan.
If you don’t cancel before the 7th day, your free trial will end automatically and your subscription will switch to a paid plan under the same plan you originally subscribed to, meaning you will be charged and gain access to the API calls included in that plan.
The free trial ends when you reach 50 API requests or after 7 days, whichever comes first.
No, the free trial is available only once, so we recommend using it on the API that interests you the most. Most of our APIs offer a free trial, but some may not include this option.
Yes, we offer a 7-day free trial that allows you to make up to 50 API calls at no cost, so you can test our APIs without any commitment.
Zyla API Hub is like a big store for APIs, where you can find thousands of them all in one place. We also offer dedicated support and real-time monitoring of all APIs. Once you sign up, you can pick and choose which APIs you want to use. Just remember, each API needs its own subscription. But if you subscribe to multiple ones, you'll use the same key for all of them, making things easier for you.
Service Level:
100%
Response Time:
502ms
Service Level:
100%
Response Time:
238ms
Service Level:
100%
Response Time:
478ms
Service Level:
100%
Response Time:
193ms
Service Level:
92%
Response Time:
432ms
Service Level:
100%
Response Time:
4,660ms
Service Level:
100%
Response Time:
2,753ms
Service Level:
100%
Response Time:
4,516ms
Service Level:
100%
Response Time:
223ms
Service Level:
100%
Response Time:
503ms
Service Level:
100%
Response Time:
12,728ms
Service Level:
100%
Response Time:
1,831ms
Service Level:
100%
Response Time:
10,199ms
Service Level:
100%
Response Time:
1,720ms
Service Level:
100%
Response Time:
506ms
Service Level:
100%
Response Time:
5,710ms
Service Level:
100%
Response Time:
8,671ms
Service Level:
100%
Response Time:
4,612ms
Service Level:
100%
Response Time:
147ms
Service Level:
100%
Response Time:
2,202ms