Los desarrolladores pueden utilizar la API de Ubicación de Marruecos para crear servicios basados en geolocalización que aporten valor a sus usuarios. Por ejemplo, pueden utilizar la API para crear aplicaciones de transporte que conecten a pasajeros con conductores en función de su ubicación. También pueden utilizar la API para crear servicios de entrega que localicen con precisión a los clientes y entreguen productos en su puerta.
La API de Ubicación de Marruecos también puede utilizarse para crear aplicaciones meteorológicas que proporcionen a los usuarios información del clima precisa y actualizada según su ubicación. Los desarrolladores también pueden usar la API para crear aplicaciones de mapas y navegación que ofrezcan direcciones paso a paso hacia su destino.
La API de Ubicación de Marruecos es fácil de integrar en aplicaciones existentes y se puede acceder a través de APIs RESTful. Los desarrolladores pueden elegir su lenguaje de programación preferido, como Java, Python, Ruby o PHP, y utilizar la API para recuperar datos de ubicación.
Además de proporcionar datos de ubicación, esta API también ofrece a los desarrolladores acceso a varios servicios basados en ubicación, como la geocodificación inversa. La geocodificación inversa es el proceso de convertir coordenadas de longitud y latitud en una dirección. La geofencing es el proceso de crear un límite virtual alrededor de un lugar específico, y los desarrolladores pueden utilizar esta función para activar notificaciones, alertas o acciones basadas en la ubicación.
En conclusión, es una herramienta poderosa para los desarrolladores que desean crear servicios basados en ubicación para el mercado de Marruecos. La API proporciona datos de ubicación precisos y actualizados, así como acceso a una amplia variedad de servicios basados en ubicación y características avanzadas. Con la API de Ubicación de Marruecos, los desarrolladores pueden crear aplicaciones innovadoras y útiles que aporten valor a los usuarios y fomenten el crecimiento empresarial.
Recibirá parámetros y le proporcionará un JSON.
Servicios de taxi: Los desarrolladores pueden usarla para proporcionar información de destino a los conductores y pasajeros del servicio de transporte.
Servicios de entrega: Se puede utilizar para rastrear la ubicación de los conductores de entrega y optimizar las rutas de entrega para ahorrar tiempo y costos de combustible.
Comercio electrónico: La API de Ubicación de Marruecos puede utilizarse para verificar direcciones de entrega.
Bienes raíces: La API de Ubicación de Marruecos puede utilizarse para proporcionar listados de propiedades basados en ubicación.
Publicidad y marketing: Puede utilizarse para entregar publicidad y campañas de marketing basadas en ubicación a los usuarios.
Aparto del número de llamadas a la API, no hay ninguna otra limitación.
Para usar este punto final, debe indicar la latitud y la longitud de las 2 ubicaciones y el tipo de medida de distancia km, mi, yd y ft.
Obtener distancia a Marruecos. - Características del Endpoint
Objeto | Descripción |
---|
{
"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'
Para usar este endpoint, todo lo que tienes que hacer es insertar en los parámetros la latitud y longitud de 2 ubicaciones con su unidad de medida en km y mi.
Obtener ruta a Marruecos. - Características del Endpoint
Objeto | Descripción |
---|---|
start_lon |
[Requerido] |
start_lat |
[Requerido] |
end_lon |
[Requerido] |
end_lat |
[Requerido] |
distance_unit |
Opcional |
{
"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'
Encabezado | Descripción |
---|---|
Autorización
|
[Requerido] Debería ser Bearer access_key . Consulta "Tu Clave de Acceso a la API" arriba cuando estés suscrito. |
Sin compromiso a largo plazo. Mejora, reduce o cancela en cualquier momento. La Prueba Gratuita incluye hasta 50 solicitudes.
El punto final "Obtener distancia de Marruecos" devuelve la distancia y la duración entre dos ubicaciones, mientras que el punto final "Obtener ruta de Marruecos" proporciona información detallada sobre la ruta, incluida la distancia, la duración y las instrucciones de navegación paso a paso.
Los campos clave incluyen "distancia", "duración" y "unidad" para el punto final de distancia, y "pasos", "dirección", "instrucción", "distancia" y "duración" para el punto final de ruta, lo que permite a los usuarios entender los detalles del viaje.
Ambos puntos finales requieren latitud y longitud para dos ubicaciones. El punto final de distancia también acepta un tipo de medida (km, mi, yd, ft), mientras que el punto final de ruta especifica la unidad de medida (km o mi).
Los datos de respuesta están estructurados en formato JSON. Para el punto final de distancia, incluye distancia y duración. El punto final de la ruta organiza los datos en un arreglo de pasos, cada uno detallando dirección, distancia, duración y ubicación.
La API de ubicación de Marruecos obtiene sus datos de bases de datos de geolocalización y servicios de mapeo confiables, garantizando información precisa de ubicación y cálculos de rutas para los usuarios.
Los casos de uso típicos incluyen aplicaciones de transporte para servicios de taxi, optimización de rutas de entrega para logística y aplicaciones de navegación que proporcionan direcciones paso a paso para los usuarios.
Los usuarios pueden personalizar las solicitudes especificando diferentes pares de latitud y longitud para varias ubicaciones y seleccionando las unidades de medida deseadas para los cálculos de distancia.
Los usuarios pueden aprovechar los datos de distancia y ruta para mejorar las experiencias de los usuarios en las aplicaciones, como proporcionar tiempos de viaje estimados, optimizar rutas para entregas o integrar servicios basados en la ubicación en sus aplicaciones.
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, refer to the 'X-Zyla-API-Calls-Monthly-Remaining' field in the response header. For example, if your plan allows 1.000 requests per month and you've used 100, this field in the response header will indicate 900 remaining calls.
To see the maximum number of API requests your plan allows, check the 'X-Zyla-RateLimit-Limit' response header. For instance, if your plan includes 1.000 requests per month, this header will display 1.000.
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 3.600, it means 3.600 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 give you the opportunity to experience our APIs without any commitment, we offer a 7-day free trial that allows you to make up to 50 API calls at no cost. This trial can be used only once, so we recommend applying it to the API that interests you the most. While most of our APIs offer a free trial, some may not. The trial concludes after 7 days or once you've made 50 requests, whichever occurs first. If you reach the 50 request limit during the trial, you will need to "Start Your Paid Plan" to continue making requests. You can find the "Start Your Paid Plan" button in your profile under Subscription -> Choose the API you are subscribed to -> Pricing tab. Alternatively, if you don't cancel your subscription before the 7th day, your free trial will end, and your plan will automatically be billed, granting you access to all the API calls specified in your plan. Please keep this in mind to avoid unwanted charges.
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 free trial, you can make up to 50 API calls. If you wish to make additional API calls beyond this limit, the API will prompt you to perform an "Start Your Paid Plan." You can find the "Start Your Paid Plan" button in your profile under Subscription -> Choose the API you are subscribed to -> Pricing tab.
Payout Orders are processed between the 20th and the 30th of each month. If you submit your request before the 20th, your payment will be processed within this timeframe.
Nivel de Servicio:
100%
Tiempo de Respuesta:
928,37ms
Nivel de Servicio:
100%
Tiempo de Respuesta:
424,38ms
Nivel de Servicio:
100%
Tiempo de Respuesta:
1.315,81ms
Nivel de Servicio:
100%
Tiempo de Respuesta:
2.064,86ms
Nivel de Servicio:
100%
Tiempo de Respuesta:
726,66ms
Nivel de Servicio:
100%
Tiempo de Respuesta:
6.038,21ms
Nivel de Servicio:
100%
Tiempo de Respuesta:
502,35ms
Nivel de Servicio:
100%
Tiempo de Respuesta:
1.551,44ms
Nivel de Servicio:
100%
Tiempo de Respuesta:
949,33ms
Nivel de Servicio:
100%
Tiempo de Respuesta:
969,56ms
Nivel de Servicio:
100%
Tiempo de Respuesta:
4.464,89ms
Nivel de Servicio:
100%
Tiempo de Respuesta:
3.855,26ms
Nivel de Servicio:
100%
Tiempo de Respuesta:
7.640,16ms
Nivel de Servicio:
100%
Tiempo de Respuesta:
791,99ms
Nivel de Servicio:
99%
Tiempo de Respuesta:
5.567,05ms
Nivel de Servicio:
100%
Tiempo de Respuesta:
4.506,27ms
Nivel de Servicio:
100%
Tiempo de Respuesta:
5.843,02ms
Nivel de Servicio:
100%
Tiempo de Respuesta:
1.471,43ms
Nivel de Servicio:
100%
Tiempo de Respuesta:
238,81ms
Nivel de Servicio:
100%
Tiempo de Respuesta:
6.410,01ms