I have a csv file which states the names of cities of UK that have different geolocations for each cities. Considering theres over 10 cities i would like to store these cities into an array and then have them mapped onto each city area of the UK map.
How do i create an array that would read each city along with the latitude and longitude in order to have them mapped onto the UK map and when they are mapped i would want each city location to be clickable so it displays a text.
I have three different screens for different years of the cities, so when i click each screen it shows different data and this is where it gets confusing as i have no idea of how and where i would need to put it.
I can send the code over by PM for anyone who can assist me with it.
to show different years: let’s say you press 1 for 2015, 2 for 2016 and 3 for 2017, set a String in keyPressed() to these years and evaluate in draw().
The Table object is a bit more complex to work with, but it is designed to work with csv format data of different column data types. It will let you store names, lat/long floats, and other metadata in each TableRow so that you can loop over them for display or look them up by index or name value.