I can pull the latitude and longitude when i pull from the first location, but when i try to do an each loop for all the locations, i get all the results. should i run a separate loop for these has results or is there an easier way?
the reason i ask is that i'd like to create an array of latitudes and longitudes so that i can pass them a map markers.
I'm trying to get map coordinates from my api location results. => #
I can pull the latitude and longitude when i pull from the first location, but when i try to do an each loop for all the locations, i get all the results. should i run a separate loop for these has results or is there an easier way?
the reason i ask is that i'd like to create an array of latitudes and longitudes so that i can pass them a map markers.