Skip to content
Advertisement

How to retrieve data from Firebase database and show the values in Google map?

In my database, I have values about location for each persons like that database structure and I want to retrieve data and show in the map. How get get and show? I created an ArrayList and details class constuctor for get a values.

Advertisement

Answer

To solve this, please use the following code:

JavaScript

But I strongly recommend you, to store the values for the latitude and longitude as doubles and not as strings.

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement