Mapping an array value of coordinate from API to the google map marker(Lat,Lng)

Hi,

I'm not sure how to map the array value into the geolocation latitude and longitude. I'm getting the coordinates from an API and those coordinates are stored in an array and I want it to show in the map by using the marker. but the marker require two value latitude and longitude. if I map the api coordinates to both latitude and longitude it picking up the first value only. how do I separate them and use it in the map.

this is how I have it currently and it doesn't work. can you please help me.

1 person has
this question
+1
Reply