La API de Sitios Cercanos por Coordenadas es una herramienta poderosa que permite a los desarrolladores recuperar fácilmente una lista de lugares cercanos basada en un conjunto de coordenadas de origen. Esta API permite a los usuarios filtrar los resultados de búsqueda por categorías y radio, lo que la convierte en un excelente recurso para aplicaciones basadas en la ubicación que necesitan mostrar puntos de interés cercanos a los usuarios.
Uno de los beneficios clave de la API de Sitios Cercanos por Coordenadas es su capacidad para ordenar los resultados en orden ascendente según la distancia desde las coordenadas especificadas. Esta función permite a los usuarios identificar rápida y fácilmente los puntos de interés más cercanos, lo que la convierte en una herramienta esencial para aplicaciones de navegación y mapeo.
Además, la capacidad de la API para filtrar resultados por categoría y radio proporciona un alto grado de flexibilidad para los desarrolladores. Ya sea que estés creando una aplicación de viajes que necesite mostrar restaurantes y atracciones cercanas, o una aplicación inmobiliaria que necesite mostrar casas en venta cercanas, esta API puede ayudarte a proporcionar a los usuarios resultados de búsqueda precisos y relevantes.
En general, la API de Sitios Cercanos por Coordenadas es un recurso valioso para cualquier desarrollador que construya una aplicación basada en la ubicación. Con sus poderosas capacidades de búsqueda y sus opciones de filtrado flexibles, es una herramienta esencial para proporcionar a los usuarios información precisa y relevante sobre lugares de interés cercanos.
Recibirá parámetros y le proporcionará un JSON.
Aplicaciones de viajes: Mostrar hoteles, restaurantes y atracciones turísticas cercanas para ayudar a los viajeros a navegar en nuevas ciudades.
Aplicaciones inmobiliarias: Mostrar casas y apartamentos cercanos en venta o alquiler para ayudar a los usuarios a encontrar un nuevo lugar para vivir.
Aplicaciones de eventos: Mostrar conciertos, festivales y otros eventos cercanos para ayudar a los usuarios a planificar sus fines de semana.
Aplicaciones de fitness: Mostrar gimnasios, parques y senderos cercanos para ayudar a los usuarios a encontrar lugares para hacer ejercicio.
Aplicaciones de transporte: Mostrar puntos de recogida y lugares de entrega cercanos para pasajeros y conductores.
Servicios de emergencia: Ayudar a los primeros en responder a localizar hospitales, estaciones de policía y departamentos de bomberos cercanos.
Aplicaciones de venta al por menor: Mostrar tiendas y centros comerciales cercanos para ayudar a los usuarios a encontrar lo que buscan.
Aplicaciones de redes sociales: Mostrar amigos y posibles coincidencias cercanas para ayudar a los usuarios a conectarse con otros.
Aplicaciones de entrega: Mostrar restaurantes y tiendas cercanas para que los usuarios pidan comida y productos.
Aplicaciones de navegación: Mostrar estaciones de servicio, áreas de descanso y otros puntos de interés cercanos para ayudar a los usuarios en viajes largos.
Plan Básico: 5,000 llamadas a la API por mes. 200 / Día
Plan Pro: 10,000 llamadas a la API. 500 / Día
Plan Pro Plus: 30,000 llamadas a la API. 1,500 / Día
El endpoint Fetch Categories Of Sites es una característica útil de la API Nearby Sites By Coordinates. Este endpoint permite a los usuarios recuperar una lista de todas las categorías disponibles que se pueden utilizar junto con el endpoint Fetch Nearby Sites By Coordinates. Al proporcionar a los usuarios una lista completa de categorías, los desarrolladores pueden asegurarse de que sus aplicaciones basadas en la ubicación estén mostrando con precisión los puntos de interés cercanos que son relevantes para sus usuarios. El endpoint Fetch Categories Of Sites es una herramienta esencial para cualquier desarrollador que busque incorporar datos precisos y relevantes basados en la ubicación en sus aplicaciones.
["accommodation","accommodation.hotel","accommodation.hut","accommodation.apartment","accommodation.chalet","accommodation.guest_house","accommodation.hostel","accommodation.motel","activity","activity.community_center","activity.sport_club","commercial","commercial.supermarket","commercial.marketplace","commercial.shopping_mall","commercial.department_store","commercial.elektronics","commercial.outdoor_and_sport","commercial.outdoor_and_sport.water_sports","commercial.outdoor_and_sport.ski","commercial.outdoor_and_sport.diving","commercial.outdoor_and_sport.hunting","commercial.outdoor_and_sport.bicycle","commercial.outdoor_and_sport.fishing","commercial.outdoor_and_sport.golf","commercial.vehicle","commercial.hobby","commercial.hobby.model","commercial.hobby.anime","commercial.hobby.collecting","commercial.hobby.games","commercial.hobby.brewing","commercial.hobby.photo","commercial.hobby.music","commercial.hobby.sewing_and_knitting","commercial.hobby.art","commercial.books","commercial.gift_and_souvenir","commercial.stationery","commercial.newsagent","commercial.tickets_and_lottery","commercial.clothing","commercial.clothing.shoes","commercial.clothing.clothes","commercial.clothing.underwear","commercial.clothing.sport","commercial.clothing.men","commercial.clothing.women","commercial.clothing.kids","commercial.clothing.accessories","commercial.bag","commercial.baby_goods","commercial.agrarian","commercial.garden","commercial.houseware_and_hardware","commercial.houseware_and_hardware.doityourself","commercial.houseware_and_hardware.hardware_and_tools","commercial.houseware_and_hardware.building_materials","commercial.houseware_and_hardware.building_materials.paint","commercial.houseware_and_hardware.building_materials.glaziery","commercial.houseware_and_hardware.building_materials.doors","commercial.houseware_and_hardware.building_materials.tiles","commercial.houseware_and_hardware.building_materials.windows","commercial.houseware_and_hardware.building_materials.flooring","commercial.houseware_and_hardware.fireplace","commercial.houseware_and_hardware.swimming_pool","commercial.florist","commercial.furniture_and_interior","commercial.furniture_and_interior.lighting","commercial.furniture_and_interior.curtain","commercial.furniture_and_interior.carpet","commercial.furniture_and_interior.kitchen","commercial.furniture_and_interior.bed","commercial.furniture_and_interior.bathroom","commercial.chemist","commercial.health_and_beauty","commercial.health_and_beauty.pharmacy","commercial.health_and_beauty.optician","commercial.health_and_beauty.medical_supply","commercial.health_and_beauty.hearing_aids","commercial.health_and_beauty.herbalist","commercial.health_and_beauty.cosmetics","commercial.health_and_beauty.wigs","commercial.toy_and_game","commercial.pet","commercial.food_and_drink","commercial.food_and_drink.bakery","commercial.food_and_drink.deli","commercial.food_and_drink.frozen_food","commercial.food_and_drink.pasta","commercial.food_and_drink.spices","commercial.food_and_drink.organic","commercial.food_and_drink.honey","commercial.food_and_drink.rice","commercial.food_and_drink.nuts","commercial.food_and_drink.health_food","commercial.food_and_drink.ice_cream","commercial.food_and_drink.seafood","commercial.food_and_drink.fruit_and_vegetable","commercial.food_and_drink.farm","commercial.food_and_drink.confectionery","commercial.food_and_drink.chocolate","commercial.food_and_drink.butcher","commercial.food_and_drink.cheese_and_dairy","commercial.food_and_drink.drinks","commercial.food_and_drink.coffee_and_tea","commercial.convenience","commercial.discount_store","commercial.smoking","commercial.second_hand","commercial.gas","commercial.weapons","commercial.pyrotechnics","commercial.energy","commercial.wedding","commercial.jewelry","commercial.watches","commercial.art","commercial.antiques","commercial.video_and_music","commercial.erotic","commercial.trade","commercial.kiosk","catering","catering.restaurant","catering.restaurant.pizza","catering.restaurant.burger","catering.restaurant.regional","catering.restaurant.italian","catering.restaurant.chinese","catering.restaurant.sandwich","catering.restaurant.chicken","catering.restaurant.mexican","catering.restaurant.japanese","catering.restaurant.american","catering.restaurant.kebab","catering.restaurant.indian","catering.restaurant.asian","catering.restaurant.sushi","catering.restaurant.french","catering.restaurant.german","catering.restaurant.thai","catering.restaurant.greek","catering.restaurant.seafood","catering.restaurant.fish_and_chips","catering.restaurant.steak_house","catering.restaurant.international","catering.restaurant.tex-mex","catering.restaurant.vietnamese","catering.restaurant.turkish","catering.restaurant.korean","catering.restaurant.noodle","catering.restaurant.barbecue","catering.restaurant.spanish","catering.restaurant.fish","catering.restaurant.ramen","catering.restaurant.mediterranean","catering.restaurant.friture","catering.restaurant.beef_bowl","catering.restaurant.lebanese","catering.restaurant.wings","catering.restaurant.georgian","catering.restaurant.tapas","catering.restaurant.indonesian","catering.restaurant.arab","catering.restaurant.portuguese","catering.restaurant.russian","catering.restaurant.filipino","catering.restaurant.african","catering.restaurant.malaysian","catering.restaurant.caribbean","catering.restaurant.peruvian","catering.restaurant.bavarian","catering.restaurant.brazilian","catering.restaurant.curry","catering.restaurant.dumpling","catering.restaurant.persian","catering.restaurant.argentinian","catering.restaurant.oriental","catering.restaurant.balkan","catering.restaurant.moroccan","catering.restaurant.pita","catering.restaurant.ethiopian","catering.restaurant.taiwanese","catering.restaurant.latin_american","catering.restaurant.hawaiian","catering.restaurant.irish","catering.restaurant.austrian","catering.restaurant.croatian","catering.restaurant.danish","catering.restaurant.tacos","catering.restaurant.bolivian","catering.restaurant.hungarian","catering.restaurant.western","catering.restaurant.european","catering.restaurant.jamaican","catering.restaurant.cuban","catering.restaurant.soup","catering.restaurant.uzbek","catering.restaurant.nepalese","catering.restaurant.czech","catering.restaurant.syrian","catering.restaurant.afghan","catering.restaurant.malay","catering.restaurant.chili","catering.restaurant.belgian","catering.restaurant.ukrainian","catering.restaurant.swedish","catering.restaurant.pakistani","catering.fast_food","catering.fast_food.pizza","catering.fast_food.burger","catering.fast_food.sandwich","catering.fast_food.kebab","catering.fast_food.fish_and_chips","catering.fast_food.noodle","catering.fast_food.ramen","catering.fast_food.wings","catering.fast_food.tapas","catering.fast_food.pita","catering.fast_food.tacos","catering.fast_food.soup","catering.fast_food.salad","catering.fast_food.hot_dog","catering.cafe","catering.cafe.waffle","catering.cafe.ice_cream","catering.cafe.coffee_shop","catering.cafe.donut","catering.cafe.crepe","catering.cafe.bubble_tea","catering.cafe.cake","catering.cafe.frozen_yogurt","catering.cafe.dessert","catering.cafe.coffee","catering.cafe.tea","catering.food_court","catering.bar","catering.pub","catering.ice_cream","catering.biergarten","education","education.school","education.driving_school","education.music_school","education.language_school","education.library","education.college","education.university","childcare","childcare.kindergarten","entertainment","entertainment.culture","entertainment.culture.theatre","entertainment.culture.arts_centre","entertainment.culture.gallery","entertainment.zoo","entertainment.aquarium","entertainment.planetarium","entertainment.museum","entertainment.cinema","entertainment.amusement_arcade","entertainment.escape_game","entertainment.miniature_golf","entertainment.bowling_alley","entertainment.flying_fox","entertainment.theme_park","entertainment.water_park","healthcare","healthcare.clinic_or_praxis","healthcare.clinic_or_praxis.allergology","healthcare.clinic_or_praxis.vascular_surgery","healthcare.clinic_or_praxis.urology","healthcare.clinic_or_praxis.trauma","healthcare.clinic_or_praxis.rheumatology","healthcare.clinic_or_praxis.radiology","healthcare.clinic_or_praxis.pulmonology","healthcare.clinic_or_praxis.psychiatry","healthcare.clinic_or_praxis.paediatrics","healthcare.clinic_or_praxis.otolaryngology","healthcare.clinic_or_praxis.orthopaedics","healthcare.clinic_or_praxis.ophthalmology","healthcare.clinic_or_praxis.occupational","healthcare.clinic_or_praxis.gynaecology","healthcare.clinic_or_praxis.general","healthcare.clinic_or_praxis.gastroenterology","healthcare.clinic_or_praxis.endocrinology","healthcare.clinic_or_praxis.dermatology","healthcare.clinic_or_praxis.cardiology","healthcare.dentist","healthcare.dentist.orthodontics","healthcare.hospital","healthcare.pharmacy","heritage","heritage.unesco","leisure","leisure.picnic","leisure.picnic.picnic_site","leisure.picnic.picnic_table","leisure.picnic.bbq","leisure.playground","leisure.spa","leisure.spa.public_bath","leisure.spa.sauna","leisure.park","leisure.park.garden","leisure.park.nature_reserve","man_made","man_made.pier","man_made.breakwater","man_made.tower","man_made.water_tower","man_made.bridge","man_made.lighthouse","man_made.windmill","man_made.watermill","natural","natural.forest","natural.water","natural.water.spring","natural.water.reef","natural.water.hot_spring","natural.water.geyser","natural.water.sea","natural.mountain","natural.mountain.peak","natural.mountain.glacier","natural.mountain.cliff","natural.mountain.rock","natural.mountain.cave_entrance","natural.sand","natural.sand.dune","natural.protected_area","national_park","office","office.government","office.government.administrative","office.government.register_office","office.government.tax","office.government.public_service","office.government.ministry","office.government.healthcare",{"_note":"Response truncated for documentation purposes"}]
curl --location --request GET 'https://zylalabs.com/api/1746/nearby+sites+by+coordinates+api/1359/fetch+categories+of+sites' --header 'Authorization: Bearer YOUR_API_KEY'
El endpoint Fetch Nearby Sites By Coordinates es una poderosa función de la API Nearby Sites By Coordinates. Este endpoint permite a los usuarios recuperar una lista de lugares cercanos basada en un conjunto de coordenadas de origen, ordenados por distancia en orden ascendente. Además, los usuarios pueden filtrar los resultados por categorías y radio para asegurar que los resultados de búsqueda sean relevantes y precisos. Este endpoint es ideal para desarrolladores que construyen aplicaciones basadas en la ubicación que necesitan mostrar puntos de interés cercanos a los usuarios, ya sea para viajes, bienes raíces, redes sociales o servicios de emergencia. El endpoint Fetch Nearby Sites By Coordinates es una herramienta valiosa para cualquier desarrollador que busque incorporar datos precisos y relevantes basados en la ubicación en sus aplicaciones.
NOTA: Devuelve hasta 60 sitios por solicitud.
Obtener sitios cercanos por coordenadas - Características del Endpoint
| Objeto | Descripción |
|---|---|
lat |
[Requerido] Latitude. For example: 40.748817 |
lon |
[Requerido] Longitude. For example: -73.985428 |
categories |
Opcional This can be found in the endpoint Fetch Categories Of Sites. If it is not specified it will take catering.cafe by default. |
radius |
Opcional In meters. If it is not specified it will take 200 by default. The maximum is 50000. |
{"status":"OK","results":[{"location":{"lat":"40.7481846","lng":"-73.9856870"},"name":"Starbucks","country":"United States","state":"New York","postal_code":"10118","city":"New York","street":"5th Avenue","address":"350 5th Avenue, New York, NY 10118, United States of America","formatted_address":"Starbucks, 350 5th Avenue, New York, NY 10118, United States of America","distanceMeter":"74.00","place_id":"51e845ed7e157f52c0590ef75283c45f4440f00103f901641ca53400000000920309537461726275636b73"},{"location":{"lat":"40.7485816","lng":"-73.9863247"},"name":"Kawande Martin Cafe","country":"United States","state":"New York","postal_code":"10001","city":"New York","street":"West 33rd Street","address":"West 33rd Street, New York, NY 10001, United States of America","formatted_address":"Kawande Martin Cafe, West 33rd Street, New York, NY 10001, United States of America","distanceMeter":"80.00","place_id":"512a6fa2f11f7f52c05935f99985d15f4440f00103f901261d6435010000009203134b6177616e6465204d617274696e2043616665"},{"location":{"lat":"40.7491000","lng":"-73.9839030"},"name":"Starbucks","country":"United States","state":"New York","postal_code":"10016","city":"New York","street":"East 35th Street","address":"East 35th Street, New York, NY 10016, United States of America","formatted_address":"Starbucks, East 35th Street, New York, NY 10016, United States of America","distanceMeter":"133.00","place_id":"51ecdb4944f87e52c059277f4182e25f4440f00103f9010247a43400000000920309537461726275636b73"},{"location":{"lat":"40.7476635","lng":"-73.9864189"},"name":"Tea Makers","country":"United States","state":"New York","postal_code":"10001","city":"New York","street":"West 32nd Street","address":"15 West 32nd Street, New York, NY 10001, United States of America","formatted_address":"Tea Makers, 15 West 32nd Street, New York, NY 10001, United States of America","distanceMeter":"153.00","place_id":"5101eabc7c217f52c059683c0570b35f4440f00103f901917c911a0200000092030a546561204d616b657273"},{"location":{"lat":"40.7476872","lng":"-73.9864866"},"name":"Grace Street","country":"United States","state":"New York","postal_code":"10001","city":"New York","street":"West 32nd Street","address":"17 West 32nd Street, New York, NY 10001, United States of America","formatted_address":"Grace Street, 17 West 32nd Street, New York, NY 10001, United States of America","distanceMeter":"154.00","place_id":"514f3cb198227f52c0593399d436b45f4440f00103f9013c92090c0200000092030c477261636520537472656574"},{"location":{"lat":"40.7479431","lng":"-73.9871020"},"name":"Machi Machi","country":"United States","state":"New York","postal_code":"10001","city":"New York","street":"West 32nd Street","address":"33 West 32nd Street, New York, NY 10001, United States of America","formatted_address":"Machi Machi, 33 West 32nd Street, New York, NY 10001, United States of America","distanceMeter":"171.00","place_id":"513cf4ddad2c7f52c059fda97999bc5f4440f00103f901af04dc3e0200000092030b4d61636869204d61636869"},{"location":{"lat":"40.7473548","lng":"-73.9862282"},"name":"Paris Baguette","country":"United States","state":"New York","postal_code":"10001","city":"New York","street":"West 32nd Street","address":"6 West 32nd Street, New York, NY 10001, United States of America","formatted_address":"Paris Baguette, 6 West 32nd Street, New York, NY 10001, United States of America","distanceMeter":"176.00","place_id":"512659e25c1e7f52c059a4087552a95f4440f00103f901a02869730100000092030e5061726973204261677565747465"},{"location":{"lat":"40.7474567","lng":"-73.9865203"},"name":"Gong Cha","country":"United States","state":"New York","postal_code":"10001","city":"New York","street":"West 32nd Street","address":"12 West 32nd Street, New York, NY 10001, United States of America","formatted_address":"Gong Cha, 12 West 32nd Street, New York, NY 10001, United States of America","distanceMeter":"177.00","place_id":"51c4550a26237f52c059159e41a9ac5f4440f00103f901277a1c7501000000920308476f6e6720436861"},{"location":{"lat":"40.7480440","lng":"-73.9873353"},"name":"caffé bene","country":"United States","state":"New York","postal_code":"10001","city":"New York","street":"West 32nd Street","address":"39 West 32nd Street, New York, NY 10001, United States of America","formatted_address":"caffé bene, 39 West 32nd Street, New York, NY 10001, United States of America","distanceMeter":"183.00","place_id":"51edeb6580307f52c059a0c3e2e7bf5f4440f00103f9015d0a3a730100000092030b63616666c3a92062656e65"}]}
curl --location --request GET 'https://zylalabs.com/api/1746/nearby+sites+by+coordinates+api/1360/fetch+nearby+sites+by+coordinates?lat=40.748817&lon=-73.985428' --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 endpoint "Obtener categorías de sitios" devuelve una lista de categorías disponibles para filtrar sitios cercanos. El endpoint "Obtener sitios cercanos por coordenadas" devuelve información detallada sobre lugares cercanos, incluidos sus nombres, ubicaciones, direcciones y distancias desde las coordenadas especificadas.
Los campos clave en la respuesta incluyen "nombre" (nombre del lugar), "ubicación" (latitud y longitud), "dirección" (dirección formateada), "distanciaMetro" (distancia desde el origen) y "place_id" (identificador único para el lugar).
Los datos de respuesta están estructurados en formato JSON. Para los sitios cercanos, incluye un campo "status" y un arreglo "results" que contiene objetos con detalles sobre cada sitio, como ubicación, nombre y dirección.
Los usuarios pueden personalizar las solicitudes utilizando parámetros como "coordenadas" (latitud y longitud), "radio" (distancia de búsqueda) y "categoría" (tipos específicos de lugares) para filtrar los resultados según sus necesidades.
El endpoint "Obtener categorías de sitios" proporciona una lista completa de categorías para filtrar, mientras que el endpoint "Obtener sitios cercanos por coordenadas" ofrece información detallada sobre lugares cercanos, incluidos sus nombres, ubicaciones y distancias.
La precisión de los datos se mantiene mediante actualizaciones regulares y controles de calidad de fuentes confiables. La API agrega información de varias bases de datos para asegurar que los datos reflejen las ubicaciones y categorías actuales.
Los casos de uso típicos incluyen aplicaciones de viajes que muestran atracciones cercanas, aplicaciones de bienes raíces que muestran casas en venta y aplicaciones de fitness que localizan gimnasios o parques. La API es versátil para cualquier aplicación basada en la ubicación.
Los usuarios pueden aprovechar los datos devueltos para mostrar lugares relevantes cercanos en sus aplicaciones. Al ordenar los resultados por distancia y filtrar por categoría, los desarrolladores pueden mejorar la experiencia del usuario con información precisa y oportuna.
Nivel de Servicio:
100%
Tiempo de Respuesta:
813ms
Nivel de Servicio:
100%
Tiempo de Respuesta:
2.224ms
Nivel de Servicio:
100%
Tiempo de Respuesta:
2.429ms
Nivel de Servicio:
83%
Tiempo de Respuesta:
564ms
Nivel de Servicio:
100%
Tiempo de Respuesta:
570ms
Nivel de Servicio:
100%
Tiempo de Respuesta:
336ms
Nivel de Servicio:
100%
Tiempo de Respuesta:
834ms
Nivel de Servicio:
100%
Tiempo de Respuesta:
10.090ms
Nivel de Servicio:
100%
Tiempo de Respuesta:
236ms
Nivel de Servicio:
100%
Tiempo de Respuesta:
415ms
Nivel de Servicio:
100%
Tiempo de Respuesta:
1.026ms
Nivel de Servicio:
100%
Tiempo de Respuesta:
921ms
Nivel de Servicio:
100%
Tiempo de Respuesta:
1.094ms
Nivel de Servicio:
95%
Tiempo de Respuesta:
1.507ms
Nivel de Servicio:
100%
Tiempo de Respuesta:
732ms
Nivel de Servicio:
100%
Tiempo de Respuesta:
2.699ms
Nivel de Servicio:
100%
Tiempo de Respuesta:
3.312ms
Nivel de Servicio:
97%
Tiempo de Respuesta:
3.142ms
Nivel de Servicio:
100%
Tiempo de Respuesta:
756ms
Nivel de Servicio:
100%
Tiempo de Respuesta:
3.541ms