Javascript API's issues with combining geocoding API with openmetro api

context: i have 3 ways to get location. one is by using inbuilt navaigator.geolocation which gives lat and long. second and third option is same with slight variation that is by typing location name in the field input and then either by clicking "Enter" key or click on searchbtn. All are working as intended. The issue is the API (OpenMetro) which im using (cause its free and doesn't require credit card) has few api. one specific Api will return all the weather related information based on lat and longitude but doesnt contain name of the city or country. just bunch of data related to weather Another one is geocoding which takes text input from input field and returns city , country name, latitude and longitude. when i get location based on navigator.geolocation it gives coords which is used to get weather data but doesnt have city or countryname. How or what method should i use so that it will return city name ?? https://codepen.io/avinash-tallapaneni/pen/vYzaKag
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server