leafiy
5/18/2018 - 6:53 PM

google map api get city #js #map #filter

none

results[0].address_components.filter(addr=> {
                        return (addr.types[0] == 'locality') ? 1 : (addr.types[0] == 'administrative_area_level_1') ? 1 : 0;
                    });