Countries Cities

부분 유료
분류별 Geo API | 업데이트됨 23 giorni fa | Location
인기

9.1 / 10

지연 시간

148ms

서비스 수준

100%

Health Check

N/A

모든 토론으로 돌아가기

what is the endpoint to get city details including elevationMeters. I tried city details but It want me to specify the wikiDataId on the url. How do I make it unique such that I enter a city name and get wikiDataId from it then make another request using wikiDataId to get elevationMeters?

Rapid account: Bomma
bomma
6 mesi fa

what is the endpoint to get city details including elevationMeters. I tried city details but It want me to specify the wikiDataId on the url. How do I make it unique such that I enter a city name and get wikiDataId from it then make another request using wikiDataId to get elevationMeters?

Rapid account: Natkapral
natkapral Commented 6 mesi fa

Hi,

You can use Cities nearby https://countries-cities.p.rapidapi.com/location/city/nearby or Cities in the country https://countries-cities.p.rapidapi.com/location/country/US/city/list to get the list of the cities with geonameid

City details endpioint (https://countries-cities.p.rapidapi.com/location/city/5128580) is using the geonameid return from the previous rwquests to fetch the data about the city
Unfortunately elevation wasn’t included in this API, but we can add it next week.

아래에 의견을 추가하고 토론에 참여하세요.

새 댓글을 게시하려면 로그인 / 가입