Win a copy of Classic Computer Science Problems in Swift this week in the iOS forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Using csv file values to create multiple Url parameters  RSS feed

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a csv file with coordinate values and I would like to use these values to generate a url for each one that will call each map location and return the requested as a static image and temporarily stores it into a new file.
I already know how to do this via entering in individual x and y coordinates as a double variable value eg double x = 38.367632; double y = -86.453126
But instead, i wanted to see if anyone knew of any work arounds to be able to directly call these coordinates from a csv file instead, taking each column value and use as a set of new values for these coordinates requested
in a loop whilst calling each url and returning the chosen image until all locations have been called.

Hopefully this makes a little sense of what im trying to acheive and any help would be much appreciated, this incidentally isnt for any commercial use, its just for a bigger college project which ive been set and which I am
hoping in turn will lead me to being able to compare these generated images for machine learning purposes, but its this part that im stuck on, thank you
 
Sheriff
Posts: 23503
46
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Rick Maver wrote:But instead, i wanted to see if anyone knew of any work arounds to be able to directly call these coordinates from a csv file instead, taking each column value and use as a set of new values for these coordinates requested
in a loop whilst calling each url and returning the chosen image until all locations have been called.



Why would you need work-arounds? As you said, you already know how to use data in variables to get the images. So, extract the data from the CSV file and assign it to variables. Then use what you already know.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!