I'm new to JavaScript and am making an online map visualization. I need to read in a local csv file of geographical coordinates as an array.
For example, I have:
var data = [
new google.maps.LatLng(40.3456455, -74.6558775),
new google.maps.LatLng(40.3456456, -74.6558772),
];
And I want to be able to populate this with the coordinates I have in my CSV file.
I looked at jquery-csv but it requires the csv to be passed in as a string, and that passing a filepath and having Javascript read the file is not possible. Should I have the string hard-coded, or try and read it in in Python and somehow pass the string to Javascript? What is the best way to manage this?
Thanks!