What is the output of the query . Select lat ,long from Weather_location ? I think the long value is -80 in there and so you are having the issue . This is what I tried .
Created two variable Long and lat and set the value which you shared . Used the below expression .
@concat('http://api.worldweatheronline.com/premium/v1/weather.ashx?key=XXXXXX&q=',variables('lat')
,',',variables('long'),'&format=JSON&num_of_days=5')
It just works fine .
{
"data": {
"request": [
{
"type": "LatLon",
"query": "Lat 41.14 and Lon 80.68"
}
],
"current_condition": [
{
"observation_time": "11:3
.....
You are right when you said about the hyperlink , it does not show as complete ( see the screen shot below ) but it still works for me .
Input
{
"url": "http://api.worldweatheronline.com/premium/v1/weather.ashx?key=XXXXXX=41.14,80.68&format=JSON&num_of_days=5",
"method": "GET",
"headers": {}
}
Edit on 1/15
As I undersand the intend is to use the API and copy the response JSON to a ADLE GEN 2 .
This is what I did when i tried .
Used the a copy activity select SINK as REST , base URL in the linked service was
http://api.worldweatheronline.com.
Create a new Variable : relativeurl :
@concat('/premium/v1/weather.ashx?key=yourkey&q=',variables('lat')
,',',variables('long'),'&format=JSON&num_of_days=5')
We will use this as a parameter in the SOURCE relative url .
GO to Copy Activity ( CA ) -> Source DS -> Open -> Parameter -> relativeurl
GO to Copy Activity ( CA ) -> Source -> you should see relativeurl ->@variables('relativeurl')
GO to Copy Activity ( CA ) -> Source DS -> Open ->Relative URL -@dataset().relativeurl
HTH