Hotels

BETAALD
Verified
Door Api Dojo | Bijgewerkt vor 4 Tagen | Travel
Populariteit

9.8 / 10

Latency

2,301ms

Serviceniveau

100%

Health Check

N/A

Terug naar alle discussies

Can't search location with 'Hanoi'

Rapid account: Jira
Jira
vor 3 Jahren

I tried use search hotel location with this word ‘Hanoi’ (Capital city of Vietnam) after call API I can’t find any result in Vietnam. Could please guide me how to search with the word ‘Hanoi’

This is results when I call this endpoint locations/search

0:{2 items
"group":“CITY_GROUP”
“entities”:[9 items
0:{10 items
"geoId":“55124"
“destinationId”:“1635858"
“landmarkCityDestinationId”:NULL
"type”:“CITY”
“redirectPage”:“DEFAULT_PAGE”
“latitude”:39.801003
"longitude”:-76.983856
"searchDetail":NULL
"caption":“Hanover, Pennsylvania, United States of America”
“name”:“Hanover”
}
1:{10 items
"geoId":“6069"
“destinationId”:“1635463"
“landmarkCityDestinationId”:NULL
"type”:“CITY”
“redirectPage”:“DEFAULT_PAGE”
“latitude”:43.702397
"longitude”:-72.289335
"searchDetail":NULL
"caption":“Hanover, New Hampshire, United States of America”
“name”:“Hanover”
}
2:{10 items
"geoId":“112440"
“destinationId”:“1496624"
“landmarkCityDestinationId”:NULL
"type”:“CITY”
“redirectPage”:“DEFAULT_PAGE”
“latitude”:42.12239035774782
"longitude”:-70.85713543254634
"searchDetail":NULL
"caption":“Hanover, Massachusetts, United States of America”
“name”:“Hanover”
}
3:{10 items
"geoId":“7552"
“destinationId”:“1414297"
“landmarkCityDestinationId”:NULL
"type”:“CITY”
“redirectPage”:“DEFAULT_PAGE”
“latitude”:38.67102129224748
"longitude”:-85.48030582116083
"searchDetail":NULL
"caption":“Hanover, Indiana, United States of America”
“name”:“Hanover”
}
4:{10 items
"geoId":“112441"
“destinationId”:“1405806"
“landmarkCityDestinationId”:NULL
"type”:“CITY”
“redirectPage”:“DEFAULT_PAGE”
“latitude”:41.988558232739244
"longitude”:-88.13995702150942
"searchDetail":NULL
"caption":“Hanover Park, Illinois, United States of America”
“name”:“Hanover Park”
}
5:{10 items
"geoId":“8214"
“destinationId”:“1500107"
“landmarkCityDestinationId”:NULL
"type”:“CITY”
“redirectPage”:“DEFAULT_PAGE”
“latitude”:39.17012286227079
"longitude”:-76.72324409302756
"searchDetail":NULL
"caption":“Hanover, Maryland, United States of America”
“name”:“Hanover”
}
6:{10 items
"geoId":“6344703"
“destinationId”:“1510649"
“landmarkCityDestinationId”:NULL
"type”:“CITY”
“redirectPage”:“DEFAULT_PAGE”
“latitude”:37.77018152300694
"longitude”:-77.32733493996456
"searchDetail":NULL
"caption":“Hanover, Virginia, United States of America”
“name”:“Hanover”
}
7:{10 items
"geoId":“6341471"
“destinationId”:“1809074"
“landmarkCityDestinationId”:NULL
"type”:“CITY”
“redirectPage”:“DEFAULT_PAGE”
“latitude”:40.07809858953982
"longitude”:-82.27274980042407
"searchDetail":NULL
"caption":“Hanover, Ohio, United States of America”
“name”:“Hanover”
}
8:{10 items
"geoId":“553248633981712758"
“destinationId”:“10873738"
“landmarkCityDestinationId”:NULL
"type”:“NEIGHBORHOOD”
“redirectPage”:“DEFAULT_PAGE”
“latitude”:21.035026590845654
"longitude”:105.85243171672725
"searchDetail":NULL
"caption":"<span class=‘highlighted’>Hanoi</span> Backpacker Quarter, Hanoi, Vietnam"
“name”:“Hanoi Backpacker Quarter”
}
]

Rapid account: Jira
Jira Commented vor 3 Jahren

Thank you for your support 😃

Rapid account: Apidojo
apidojo Commented vor 3 Jahren

Well,

The auto complete endpoint is mapped to the search bar on top. If you want to get a hotel directly by the endpoint, you need to search for specific hotel with its actual name. You are also interested in the discussion at https://rapidapi.com/apidojo/api/hotels4/discussions/19067
If you want to list many hotels in a area, you need to use …/properties/list endpoint instead.

Regards.

Doe mee aan de discussie - voeg hieronder een opmerking toe

Log in / Schrij u in om nieuwe opmerkingen te plaatsen