简体   繁体   中英

How to use Talend to send a dynamic URL link

I'm trying to use Talend to get weather data by latitude and longitude. I'm retrieving all the applicable latitude and longitude values and then I need to loop through these and create URL's that contain the latitude and longitude. I was trying to use a tFileFetch to retrieve the response, but I can't see any way to pass in variables for latitude and longitude. Does anyone know if there is a different component I should use?

Thanks

I'm not sure I understand your question, but I'll try.

In the URI field of the tFileFetch component you can add your output from the previous component for the lat long, for example:

"http://www.weather.com/weather/right-now?lat=" + lat + "&long=" + long

If I'm totally off, please provide more detail as to what you're looking for.

You could also use the tRest component to retrieve the response.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM