Reputation: 521
I'm working on an Android project in which I will need to display the locations of various airports on Google Maps. I already have a list of latitude/longitude coordinates. My question is:
How do I get these coordinates to Display as a location in Google Maps on an Android Activity? What classes or other methods should I consider? Are there any templates or tutorials I could look at? Any help is most appreciated.
Upvotes: 0
Views: 1378
Reputation: 1669
If you already have lat/lng for all required places, you can just use this in a loop for all coordinates:
LatLng loc = new LatLng(latitude,longitude);
map.addMarker(new MarkerOptions().position(loc).title("locationName"));
Upvotes: 2