Pessoal estou desenvolvendo um aplicativo que mostra todos os bares próximo a você pelo maps, utilizo o firebase, e preciso fazer uma consulta para pegar os dados dos bares que preciso como o nome, endereço, bebidas e telefone, não sei se o uid tb seria legal eu pegar para poder manusear melhor as informações, mas como faço essa consulta?
{
“bares” : {
“4baMIQxhLhaPuvIM8v7ZT7dihip1” : {
“bebidas” : {
"-KSI5FIErUBl_6HxDq8c" : {
“idFirebase” : “-KSI5FIErUBl_6HxDq8c”,
“nome” : “cerveja”,
“preco” : 46.75
},
"-KSI9mQTDG_4vb2jgXdt" : {
“idFirebase” : “-KSI9mQTDG_4vb2jgXdt”,
“nome” : “jose cuervo”,
“preco” : 46
}
},
“email” : "barbara.dare.campanha@gmail.com",
“endereco” : “Rua Vergueiro 3185, Vila Mariana, Sao Paulo”,
“nome” : “barbara”,
“site” : “www”,
“telefone” : “99999”,
“uriFotoPerfil” : {
“authority” : “firebasestorage.googleapis.com”,
“encodedAuthority” : “firebasestorage.googleapis.com”,
“encodedPath” : “/v0/b/wazebar.appspot.com/o/4baMIQxhLhaPuvIM8v7ZT7dihip1%2Fperfil”,
“encodedQuery” : “alt=media&token=95e63cbd-8831-4ef7-82b7-ac86177dfd25”,
“encodedSchemeSpecificPart” : “//firebasestorage.googleapis.com/v0/b/wazebar.appspot.com/o/4baMIQxhLhaPuvIM8v7ZT7dihip1%2Fperfil?alt=media&token=95e63cbd-8831-4ef7-82b7-ac86177dfd25”,
“hierarchical” : true,
“path” : “/v0/b/wazebar.appspot.com/o/4baMIQxhLhaPuvIM8v7ZT7dihip1/perfil”,
“pathSegments” : [ “v0”, “b”, “wazebar.appspot.com”, “o”, “4baMIQxhLhaPuvIM8v7ZT7dihip1/perfil” ],
“query” : “alt=media&token=95e63cbd-8831-4ef7-82b7-ac86177dfd25”,
“relative” : false,
“scheme” : “https”,
“schemeSpecificPart” : “//firebasestorage.googleapis.com/v0/b/wazebar.appspot.com/o/4baMIQxhLhaPuvIM8v7ZT7dihip1/perfil?alt=media&token=95e63cbd-8831-4ef7-82b7-ac86177dfd25”
}
},
“LwpTilgNpJR4M0UcP3YbwctS31f2” : {
“bebidas” : {
"-KSMkPl13x7x9ZoWfOrf" : {
“idFirebase” : “-KSMkPl13x7x9ZoWfOrf”,
“nome” : “Brahma”,
“preco” : 5.5
},
"-KSMkRkbuCMSulH6K33e" : {
“idFirebase” : “-KSMkRkbuCMSulH6K33e”,
“nome” : “Skol”,
“preco” : 5
},
"-KSYIoESa9yazKKftneF" : {
“idFirebase” : “-KSYIoESa9yazKKftneF”,
“nome” : “Caipirinha”,
“preco” : 12.5
},
"-KSZ1YIXD7KmtHdanEDe" : {
“idFirebase” : “-KSZ1YIXD7KmtHdanEDe”,
“nome” : “Amstel”,
“preco” : 6
}
},
“email” : "lucas.marques.albano@gmail.com",
“endereco” : “Rua frei João Augusto becker 30, vila dos Remédios, Osasco”,
“nome” : “Bar do Zé”,
“site” : “www.site.com.br”,
“telefone” : “(11) 9999-9999”,
“uriFotoPerfil” : {
“authority” : “firebasestorage.googleapis.com”,
“encodedAuthority” : “firebasestorage.googleapis.com”,
“encodedPath” : “/v0/b/wazebar.appspot.com/o/LwpTilgNpJR4M0UcP3YbwctS31f2%2Fperfil”,
“encodedQuery” : “alt=media&token=2705dd89-2cbe-4295-9314-7b35d6fb8dc9”,
“encodedSchemeSpecificPart” : “//firebasestorage.googleapis.com/v0/b/wazebar.appspot.com/o/LwpTilgNpJR4M0UcP3YbwctS31f2%2Fperfil?alt=media&token=2705dd89-2cbe-4295-9314-7b35d6fb8dc9”,
“hierarchical” : true,
“path” : “/v0/b/wazebar.appspot.com/o/LwpTilgNpJR4M0UcP3YbwctS31f2/perfil”,
“pathSegments” : [ “v0”, “b”, “wazebar.appspot.com”, “o”, “LwpTilgNpJR4M0UcP3YbwctS31f2/perfil” ],
“query” : “alt=media&token=2705dd89-2cbe-4295-9314-7b35d6fb8dc9”,
“relative” : false,
“scheme” : “https”,
“schemeSpecificPart” : “//firebasestorage.googleapis.com/v0/b/wazebar.appspot.com/o/LwpTilgNpJR4M0UcP3YbwctS31f2/perfil?alt=media&token=2705dd89-2cbe-4295-9314-7b35d6fb8dc9”
}
},
}
}
Quem puder me ajudar fico muito agradecido!