• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Using csv file values to create multiple Url parameters

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Marshal
Posts: 28193
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic