Http query to overpassAPI is working but I have tried many different approaches to programatically convert the response (very long string) into anything useful.
Tried line by line, substrings, etc in all manner of combinations but still cant find anything that works as I need it to:
take response string, find first "item" & store type (e.g 'way' or 'node'), then make variables (possibly string arraylist) of the names and values of each item element (eg [id, lat, lon, timestamp]... and [000001, 50, 50, 12:00,]... etc) so i can use them as output values to the user. There may not always be the same amount of items in the list for each item, hence i have been failing to use various loops to achieve this so far.
I have no preference in either XML or JSON response format as all I need are the values.
Can someone suggest code to achieve this? Or at least suggest somewhere that has the answers I'm looking for?
I've wasted nearly an entire day trying to figure it out myself and googling for a solution so far
Many thanks