WeatherAPI.com

FREEMIUM
От WeatherAPI.com | Обновлено לפני 21 ימים | Weather
Популярность

9.9 / 10

Задержка

254ms

Уровень обслуживания

100%

Health Check

N/A

Назад ко всем обсуждениям

Multiple Location Specifiers

Rapid account: Csirota 97
csirota97
לפני שנה

From what I’ve seen, if you provide a town or city name, there is no way to provide state/province or even country information. As somebody who is from Flemington, New Jersey, I really don’t care what the weather is in Flemington, New Zealand. Maybe there is a parameter I didn’t see anywhere that allows for this, but if that exists, the lack of documentation on this API makes it challenging to find. If this exists, I’d love some help. Thanks.

Rapid account: Weatherapi
weatherapi Commented לפני שנה

To pass a location name along with state is easy.

q=Flemington+NJ

Rapid account: Csirota 97
csirota97 Commented לפני שנה

The user may not always be querying for their specific location. They may be trying to find the weather in a different location. I found another api to accurately find the longitude and latitude, based on a location name found within a string of text. Then I plug that lat/long into this api. I still think being able to specify more info about a location would be beneficial, but for my purposes, I found a solution.

Rapid account: Talalothmanse
talalothmanse Commented לפני שנה

You can just extract the lat/long from the user client to get an accurate result, instead of inputting data.

Присоединяйтесь к обсуждению – добавьте комментарий ниже:

Войдите / Зарегистрируйтесь, чтобы публиковать новые комментарии