La API de Direcciones permite a los usuarios acceder a información detallada sobre rutas entre ubicaciones. Al aprovechar esta API, los usuarios pueden obtener direcciones precisas para varios modos de transporte. Esta capacidad no solo mejora la experiencia del usuario, sino que también facilita el desarrollo de aplicaciones que requieren funciones de navegación.
La API funciona tomando un conjunto de coordenadas de origen y destino y procesando la solicitud para devolver datos de dirección completos. Esto incluye la distancia estimada y el tiempo de viaje, que son esenciales para que los usuarios planifiquen sus viajes. La precisión de esta información se mejora considerablemente gracias a la capacidad de la API para tener en cuenta las condiciones del tráfico en tiempo real, asegurando que los usuarios reciban las rutas más eficientes disponibles. Esta característica es especialmente importante en entornos urbanos, donde el tráfico puede ser impredecible y afectar significativamente los tiempos de viaje.
En general, la API de Direcciones es un recurso vital para los usuarios que desean implementar funciones de navegación en sus aplicaciones. Su capacidad para proporcionar información de enrutamiento precisa, detallada y eficiente mejora la experiencia del usuario y ayuda a los usuarios a crear aplicaciones más atractivas y útiles.
Para usar este punto final, debes especificar un origen y destino en los parámetros.
Obtener direcciones. - Características del Endpoint
Objeto | Descripción |
---|---|
origin |
[Requerido] Indicates an origin |
destination |
[Requerido] Indicates an destination. |
{
"geocoded_waypoints" :
[
{
"geocoder_status" : "OK",
"partial_match" : true,
"place_id" : "ChIJzzgyJU--woARcZqceSdQ3dM",
"types" :
[
"amusement_park",
"establishment",
"point_of_interest",
"tourist_attraction"
]
},
{
"geocoder_status" : "OK",
"partial_match" : true,
"place_id" : "ChIJg3XXhNrX3IARUc0M9bIC_X4",
"types" :
[
"amusement_park",
"establishment",
"lodging",
"point_of_interest"
]
}
],
"routes" :
[
{
"bounds" :
{
"northeast" :
{
"lat" : 34.13621000000001,
"lng" : -117.9223126
},
"southwest" :
{
"lat" : 33.8178372,
"lng" : -118.3526957
}
},
"copyrights" : "Map data ©2024 Google",
"legs" :
[
{
"distance" :
{
"text" : "34.9 mi",
"value" : 56214
},
"duration" :
{
"text" : "48 mins",
"value" : 2904
},
"end_address" : "Anaheim, CA 92802, USA",
"end_location" :
{
"lat" : 33.8178372,
"lng" : -117.9223126
},
"start_address" : "100 Universal City Plaza, Universal City, CA 91608, USA",
"start_location" :
{
"lat" : 34.1345191,
"lng" : -118.3514579
},
"steps" :
[
{
"distance" :
{
"text" : "486 ft",
"value" : 148
},
"duration" :
{
"text" : "1 min",
"value" : 19
},
"end_location" :
{
"lat" : 34.1358101,
"lng" : -118.3511704
},
"html_instructions" : "Head \u003cb\u003enortheast\u003c/b\u003e on \u003cb\u003eUniversal Studios Blvd\u003c/b\u003e",
"polyline" :
{
"points" : "w{ioErojqUGEECGCGCGCGCGCKCICEACACAIAEAGAIAGAGAG?IAQCM@I@i@@OA"
},
"start_location" :
{
"lat" : 34.1345191,
"lng" : -118.3514579
},
"travel_mode" : "DRIVING"
},
{
"distance" :
{
"text" : "0.3 mi",
"value" : 450
},
"duration" :
{
"text" : "2 mins",
"value" : 135
},
"end_location" :
{
"lat" : 34.1329768,
"lng" : -118.3526957
},
"html_instructions" : "Make a \u003cb\u003eU-turn\u003c/b\u003e",
"maneuver" : "uturn-left",
"polyline" :
{
"points" : "ycjoExmjqUYCA?E?E?A?E@CBC@CBC@A@CBCBCB?@AB?@?@?@?@?@?@@@?@@@@@@@@?BB@?@?@?@?@?@AB?@??AB?@?ZGJCZ?TCPC@?T?B?F?H?PB@?PBLBLJFFHDJBNFFDNFHFJFTPj@^PL`@Xh@\\NJPJTJTJPHNDLDHB"
},
"start_location" :
{
"lat" : 34.1358101,
"lng" : -118.3511704
},
"travel_mode" : "DRIVING"
},
{
"distance" :
{
"text" : "9.6 mi",
"value" : 15489
},
"duration" :
{
"text" : "17 mins",
"value" : 996
},
"end_location" :
{
"lat" : 34.0525166,
"lng" : -118.2258658
},
"html_instructions" : "Turn \u003cb\u003eleft\u003c/b\u003e to merge onto \u003cb\u003eUS-101 S\u003c/b\u003e",
"maneuver" : "ramp-left",
"polyline" :
{
"points" : "crioEjwjqU\\[Hc@Fa@@KJe@DOFU@CHUDK?A@AJWFOJQBIVe@\\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AD}AFyBBsADu@?EJyA@GB]?KBYBYDg@Bi@@A\\kE@MV}CLyAHo@B_@Fm@LqANuAJgABWDi@@C@SBY"
},
"start_location" :
{
"lat" : 34.1329768,
"lng" : -118.3526957
},
"travel_mode" : "DRIVING"
},
{
"distance" :
{
"text" : "2.3 mi",
"value" : 3669
},
"duration" :
{
"text" : "2 mins",
"value" : 143
},
"end_location" :
{
"lat" : 34.026525,
"lng" : -118.2089504
},
"html_instructions" : "Keep \u003cb\u003eright\u003c/b\u003e to stay on \u003cb\u003eUS-101 S\u003c/b\u003e",
"maneuver" : "keep-right",
"polyline" :
{
"points" : "g{ynEt~qpUFS@GBOHa@@IDSDYFQDOTw@@EL]b@_ABEFMBGFIHKFMPURUHITWHIJIFGJIHGNKHGPKpAk@jAe@PGXMbAa@DAjAe@vAk@j@SXKJEf@MPGt@UPELCb@K^GPCZEVE`@Gr@GFANAl@ERAPAZAj@A`AAB?NAF?j@ApAAP?VAjAAj@AjAAnADN?j@Dv@Fj@DTBpANhANJ@t@J`@F\\DNBd@Dv@FT@R@Z?L?d@?NA^AJ?l@Et@Gh@CL?`@?B?L?`@@n@B^@\\DN@ZB|@Jd@DF?L@X@P?^@B?|@Cd@Ex@I\\Gv@Or@QBAZK@?HEDANGBAhB{@b@WXULKdByABAVUJMh@g@VYTWRSNSPSLOPS?ATYPWNSJO\\g@NUJQRYJSLUP[LSJSJUJQFOTc@Xo@JUFQp@wANe@Ri@pA}DdA{CNe@Z{@HWFOX{@`@mAn@kBn@mBPg@Vw@d@wADKb@oAL_@HYXw@DKHYXy@L]HW@??AVM"
},
"start_location" :
{
"lat" : 34.0525166,
"lng" : -118.2258658
},
"travel_mode" : "DRIVING"
},
{
"distance" :
{
"text" : "22.0 mi",
"value" : 35436
},
"duration" :
{
"text" : "25 mins",
"value" : 1487
},
"end_location" :
{
"lat" : 33.8261327,
"lng" : -117.9260045
},
"html_instructions" : "Merge onto \u003cb\u003eI-5 S\u003c/b\u003e",
"maneuver" : "merge",
"polyline" :
{
"points" : "wxtnE|tnpUd@aB\\gAVu@@CHWJ]Ni@H]FSJi@Lm@Ja@VmALk@DWH]F[Le@DOHYFS@GHUTu@DKJ[?AXw@JYJ]J[FSBGJ[BIFSFOBIHWL_@@ARq@JW@EJ[DMDMJ[BIFQL]HYL[J]JYHURm@DOL]Pk@BIHWJ]FMBI@AHYL]J[?AJYJ[BGFSL_@DOBIJY@CJ[Rk@BIJ]BEJ[J[HW@CJ]J[JYJ]FQBIJ[DMFMJ]JYJ[L_@HWJ[FQNa@J]J[DSBIJ]FY@CH]Ha@Ha@?CF[FYF_@@MDQ?CHk@@IDWD]D]Ba@B[@MDk@Dg@@U?M@QBk@@i@?S@_@?a@AwA?a@?e@?_@?]?_@?Y?E?aA?aA?aA@U?m@?...
curl --location --request GET 'https://zylalabs.com/api/5157/directions+api/6578/get+directions?origin=Universal Studios Hollywood&destination=Disneyland' --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.
Para utilizar esta API, los usuarios deben indicar una fuente y un destino.
Hay diferentes planes que se adaptan a todos, incluyendo una prueba gratuita.
La API de direcciones te permite calcular rutas, obtener instrucciones detalladas, estimar tiempos de viaje y optimizar caminos entre múltiples puntos.
La API de Direcciones recibe un origen y un destino, y devuelve información sobre la ruta, los tiempos de viaje, las distancias y los pasos de navegación detallados.
Además del número de llamadas a la API por mes, no hay otras limitaciones.
El endpoint Obtener Direcciones devuelve información detallada sobre la ruta, incluidos los puntos de paso geocodificados, la distancia de viaje estimada, la duración y las instrucciones de navegación paso a paso.
Los campos clave en la respuesta incluyen "geocoded_waypoints" para detalles de ubicación, "routes" para información de rutas, "bounds" para límites geográficos y "copyrights" para derechos de uso de datos.
Los datos de respuesta están estructurados en formato JSON, con objetos anidados para puntos de referencia y rutas. Cada ruta contiene límites, pasos y detalles de viaje, lo que facilita su análisis y uso.
Los usuarios pueden especificar parámetros como las coordenadas de "origen" y "destino", y opcionalmente incluir el "modo" de transporte (por ejemplo, conduciendo, caminando) para personalizar sus solicitudes.
El punto final proporciona información sobre rutas, incluyendo distancia, duración, direcciones paso a paso y condiciones de tráfico, que son cruciales para una planificación efectiva del viaje.
La precisión de los datos se mantiene a través de actualizaciones de tráfico en tiempo real y fuentes de mapeo confiables, asegurando que los usuarios reciban la información de enrutamiento más actual y eficiente.
Los casos de uso típicos incluyen aplicaciones de navegación, herramientas de planificación de viajes, servicios de entrega y cualquier aplicación que requiera optimización de rutas y estimación del tiempo de viaje.
Los usuarios pueden extraer detalles específicos de la ruta de la respuesta, como el tiempo de viaje y la distancia, para mostrarlos en sus aplicaciones, o usar direcciones paso a paso para fines de navegación.
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:
169,36ms
Nivel de Servicio:
100%
Tiempo de Respuesta:
2.072,78ms
Nivel de Servicio:
100%
Tiempo de Respuesta:
19.513,72ms
Nivel de Servicio:
100%
Tiempo de Respuesta:
707,75ms
Nivel de Servicio:
100%
Tiempo de Respuesta:
1.070,34ms
Nivel de Servicio:
100%
Tiempo de Respuesta:
3.739,31ms
Nivel de Servicio:
100%
Tiempo de Respuesta:
615,42ms
Nivel de Servicio:
100%
Tiempo de Respuesta:
199,23ms
Nivel de Servicio:
100%
Tiempo de Respuesta:
91,45ms
Nivel de Servicio:
100%
Tiempo de Respuesta:
2.352,24ms
Nivel de Servicio:
100%
Tiempo de Respuesta:
915,29ms
Nivel de Servicio:
100%
Tiempo de Respuesta:
602,86ms
Nivel de Servicio:
100%
Tiempo de Respuesta:
617,02ms
Nivel de Servicio:
100%
Tiempo de Respuesta:
623,08ms
Nivel de Servicio:
100%
Tiempo de Respuesta:
870,34ms
Nivel de Servicio:
100%
Tiempo de Respuesta:
2.202,81ms
Nivel de Servicio:
100%
Tiempo de Respuesta:
1.793,09ms
Nivel de Servicio:
93%
Tiempo de Respuesta:
490,35ms
Nivel de Servicio:
100%
Tiempo de Respuesta:
3.585,06ms
Nivel de Servicio:
100%
Tiempo de Respuesta:
2.790,68ms