Developers can use the Morocco 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.
Morocco 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.
Morocco 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 Morocco 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 Morocco 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 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: Morocco Location API can be used to verify delivery addresses.
Real Estate: Morocco Location API 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 Morocco distance - Endpoint Features
Object | Description |
---|
{
"distance": "93.30km",
"duration": "1h 12min",
"unit": "km"
}
curl --location --request GET 'https://zylalabs.com/api/1923/morocco+location+api/1632/get+morocco+distance' --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 Morocco route - Endpoint Features
Object | Description |
---|---|
start_lon |
[Required] |
start_lat |
[Required] |
end_lon |
[Required] |
end_lat |
[Required] |
distance_unit |
[Optional] |
{
"distance": "93.30km",
"duration": "1h 12min",
"steps": [
{
"direction": "depart",
"distance": "0.26km",
"duration": "0min:39s",
"instruction": "",
"location": [
-6.82277,
34.012967
]
},
{
"direction": "turn",
"distance": "0.19km",
"duration": "0min:14s",
"instruction": "",
"location": [
-6.820453,
34.011907
]
},
{
"direction": "new name",
"distance": "0.64km",
"duration": "0min:50s",
"instruction": "",
"location": [
-6.821581,
34.010455
]
},
{
"direction": "new name",
"distance": "1.81km",
"duration": "2min:17s",
"instruction": "",
"location": [
-6.826326,
34.006274
]
},
{
"direction": "roundabout",
"distance": "0.13km",
"duration": "0min:9s",
"instruction": "",
"location": [
-6.83856,
33.993823
]
},
{
"direction": "exit roundabout",
"distance": "1.48km",
"duration": "1min:53s",
"instruction": "",
"location": [
-6.839231,
33.992801
]
},
{
"direction": "rotary",
"distance": "0.05km",
"duration": "0min:3s",
"instruction": "",
"location": [
-6.851256,
33.98656
]
},
{
"direction": "exit rotary",
"distance": "0.61km",
"duration": "0min:48s",
"instruction": "",
"location": [
-6.851623,
33.986769
]
},
{
"direction": "roundabout",
"distance": "0.08km",
"duration": "0min:9s",
"instruction": "",
"location": [
-6.856824,
33.990099
]
},
{
"direction": "exit roundabout",
"distance": "0.85km",
"duration": "1min:7s",
"instruction": "",
"location": [
-6.857305,
33.990508
]
},
{
"direction": "turn",
"distance": "3.02km",
"duration": "4min:0s",
"instruction": "",
"location": [
-6.865876,
33.991728
]
},
{
"direction": "fork",
"distance": "31.59km",
"duration": "19min:59s",
"instruction": "",
"location": [
-6.883583,
33.968927
]
},
{
"direction": "new name",
"distance": "21.65km",
"duration": "13min:47s",
"instruction": "",
"location": [
-7.150967,
33.803737
]
},
{
"direction": "new name",
"distance": "6.67km",
"duration": "4min:9s",
"instruction": "",
"location": [
-7.346292,
33.704064
]
},
{
"direction": "new name",
"distance": "0.77km",
"duration": "0min:28s",
"instruction": "",
"location": [
-7.399861,
33.665688
]
},
{
"direction": "new name",
"distance": "1.21km",
"duration": "0min:45s",
"instruction": "",
"location": [
-7.405889,
33.660881
]
},
{
"direction": "fork",
"distance": "4.00km",
"duration": "2min:30s",
"instruction": "",
"location": [
-7.414766,
33.65294
]
},
{
"direction": "new name",
"distance": "11.10km",
"duration": "10min:11s",
"instruction": "",
"location": [
-7.450401,
33.632706
]
},
{
"direction": "off ramp",
"distance": "0.45km",
"duration": "0min:33s",
"instruction": "",
"location": [
-7.552158,
33.580578
]
},
{
"direction": "fork",
"distance": "0.14km",
"duration": "0min:10s",
"instruction": "",
"location": [
-7.556769,
33.579547
]
},
{
"direction": "turn",
"distance": "1.29km",
"duration": "1min:23s",
"instruction": "",
"location": [
-7.558221,
33.579435
]
},
{
"direction": "roundabout",
"distance": "0.04km",
"duration": "0min:2s",
"instruction": "",
"location": [
-7.571037,
33.583825
]
},
{
"direction": "exit roundabout",
"distance": "1.83km",
"duration": "1min:47s",
"instruction": "",
"location": [
-7.571341,
33.58401
]
},
{
"direction": "roundabout",
"distance": "0.01km",
"duration": "0min:0s",
"instruction": "",
"location": [
-7.590467,
33.5868
]
},
{
"direction": "exit roundabout",
"distance": "1.27km",
"duration": "1min:17s",
"instruction": "",
"location": [
-7.590595,
33.586821
]
},
{
"direction": "rotary",
"distance": "0.10km",
"duration": "0min:7s",
"instruction": "",
"location": [
-7.603507,
33.590051
]
},
{
"direction": "exit rotary",
"distance": "0.21km",
"duration": "0min:14s",
"instruction": "",
"location": [
-7.60405,
33.590064
]
},
{
"direction": "continue",
"distance": "0.28km",
"duration": "0min:18s",
"instruction": "",
"location": [
-7.606293,
33.589603
]
},
{
"direction": "new name",
"distance": "0.72km",
"duration": "0min:53s",
"instruction": "",
"location": [
-7.609213,
33.589193
]
},
{
"direction": "new name",
"distance": "0.57km",
"duration": "0min:48s",
"instruction": "",
"location": [
-7.616108,
33.59195
]
},
{
"direction": "turn",
"distance": "0.20km",
"duration": "0min:15s",
"instruction": "",
"location": [
-7.621656,
33.594076
]
},
{
"direction": "turn",
"distance": "0.04km",
"duration": "0min:6s",
"instruction": "",
"location": [
-7.619812,
33.594997
]
},
{
"direction": "fork",
"distance": "0.02km",
"duration": "0min:3s",
"instruction": "",
"location": [
-7.619698,
33.594612
]
},
{
"direction": "arrive",
"distance": "0.00km",
"duration": "0min:0s",
"instruction": "",
"location": [
-7.619829,
33.594418
]
}
]
}
curl --location --request GET 'https://zylalabs.com/api/1923/morocco+location+api/1633/get+morocco+route?start_lon=-6.82261494408883&start_lat=34.0130113&end_lon=-7.6200281&end_lat=33.5945141&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 commitments. One click upgrade/downgrade or cancellation. No questions asked.
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.
Prices are listed in USD (United States Dollar), EUR (Euro), CAD (Canadian Dollar), AUD (Australian Dollar), and GBP (British Pound). We accept all major debit and credit cards. Our payment system uses the latest security technology and is powered by Stripe, one of the worldβs most reliable payment companies. If you have any trouble paying by card, just contact us at [email protected]
Additionally, if you already have an active subscription in any of these currencies (USD, EUR, CAD, AUD, GBP), that currency will remain for subsequent subscriptions. You can change the currency at any time as long as you don't have any active subscriptions.
The local currency shown on the pricing page is based on the country of your IP address and is provided for reference only. The actual prices are in USD (United States Dollar). When you make a payment, the charge will appear on your card statement in USD, even if you see the equivalent amount in your local currency on our website. This means you cannot pay directly with your local currency.
Occasionally, a bank may decline the charge due to its fraud protection settings. We suggest reaching out to your bank initially to check if they are blocking our charges. Also, you can access the Billing Portal and change the card associated to make the payment. If these does not work and you need further assistance, please contact our team at [email protected]
Prices are determined by a recurring monthly or yearly subscription, depending on the chosen plan.
API calls are deducted from your plan based on successful requests. Each plan comes with a specific number of calls that you can make per month. Only successful calls, indicated by a Status 200 response, will be counted against your total. This ensures that failed or incomplete requests do not impact your monthly quota.
Zyla API Hub works on a recurring monthly subscription system. Your billing cycle will start the day you purchase one of the paid plans, and it will renew the same day of the next month. So be aware to cancel your subscription beforehand if you want to avoid future charges.
To upgrade your current subscription plan, simply go to the pricing page of the API and select the plan you want to upgrade to. The upgrade will be instant, allowing you to immediately enjoy the features of the new plan. Please note that any remaining calls from your previous plan will not be carried over to the new plan, so be aware of this when upgrading. You will be charged the full amount of the new plan.
To check how many API calls you have left for the current month, look at the βX-Zyla-API-Calls-Monthly-Remainingβ header. For example, if your plan allows 1000 requests per month and you've used 100, this header will show 900.
To see the maximum number of API requests your plan allows, check the βX-Zyla-RateLimit-Limitβ header. For instance, if your plan includes 1000 requests per month, this header will display 1000.
The βX-Zyla-RateLimit-Resetβ header shows the number of seconds until your rate limit resets. This tells you when your request count will start fresh. For example, if it displays 3600, it means 3600 seconds are left until the limit resets.
Yes, you can cancel your plan anytime by going to your account and selecting the cancellation option on the Billing page. Please note that upgrades, downgrades, and cancellations take effect immediately. Additionally, upon cancellation, you will no longer have access to the service, even if you have remaining calls left in your quota.
You can contact us through our chat channel to receive immediate assistance. We are always online from 8 am to 5 pm (EST). If you reach us after that time, we will get back to you as soon as possible. Additionally, you can contact us via email at [email protected]
To let you experience our APIs without any commitment, we offer a 7-day free trial that allows you to make API calls at no cost during this period. Please note that you can only use this trial once, so make sure to use it with the API that interests you the most. Most of our APIs provide a free trial, but some may not support it.
After 7 days, you will be charged the full amount for the plan you were subscribed to during the trial. Therefore, itβs important to cancel before the trial period ends. Refund requests for forgetting to cancel on time are not accepted.
When you subscribe to an API trial, you can make only 25% of the calls allowed by that plan. For example, if the API plan offers 1000 calls, you can make only 250 during the trial. To access the full number of calls offered by the plan, you will need to subscribe to the full plan.
Service Level:
100%
Response Time:
928ms
Service Level:
100%
Response Time:
424ms
Service Level:
100%
Response Time:
1,130ms
Service Level:
100%
Response Time:
1,887ms
Service Level:
100%
Response Time:
6,038ms
Service Level:
100%
Response Time:
502ms
Service Level:
100%
Response Time:
727ms
Service Level:
100%
Response Time:
970ms
Service Level:
100%
Response Time:
902ms
Service Level:
100%
Response Time:
89ms
Service Level:
100%
Response Time:
1,551ms
Service Level:
100%
Response Time:
624ms
Service Level:
100%
Response Time:
614ms
Service Level:
100%
Response Time:
395ms
Service Level:
100%
Response Time:
192ms
Service Level:
100%
Response Time:
86ms
Service Level:
100%
Response Time:
1,779ms