![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
google-places-address-normalizer
Advanced tools
Quick Start:
npm install google-places-address-normalizer --save
or
yarn add google-places-address-normalizer
Sample Code:
import googlePlacesNormalizer from 'google-places-address-normalizer';
let placesService = new window.google.maps.places.PlacesService(document.getElementById('placesService'));
let placesService.getDetails({
placeId: '123' // some place_id,
}, (place, status) => {
if (status === window.google.maps.places.PlacesServiceStatus.OK) {
const normalizedAddress = googlePlacesNormalizer(place.address_components);
// ... do something with normalizedAddress
}
});
Example input:
[{
"long_name": "916",
"short_name": "916",
"types": ["street_number"]
}, {
"long_name": "Kearny Street",
"short_name": "Kearny St",
"types": ["route"]
}, {
"long_name": "Financial District",
"short_name": "Financial District",
"types": ["neighborhood", "political"]
}, {
"long_name": "San Francisco",
"short_name": "SF",
"types": ["locality", "political"]
}, {
"long_name": "San Francisco County",
"short_name": "San Francisco County",
"types": ["administrative_area_level_2", "political"]
}, {
"long_name": "California",
"short_name": "CA",
"types": ["administrative_area_level_1", "political"]
}, {
"long_name": "United States",
"short_name": "US",
"types": ["country", "political"]
}, {
"long_name": "94133",
"short_name": "94133",
"types": ["postal_code"]
}, {
"long_name": "5107",
"short_name": "5107",
"types": ["postal_code_suffix"]
}]
Example output:
{
"address": "916 Kearny Street",
"neighborhood": "Financial District",
"city": "San Francisco",
"county": "San Francisco County",
"state": "California",
"state_abbreviation": "CA",
"country": "United States",
"country_abbreviation": "US",
"postal_code": "94133",
"postal_code_suffix": "5107"
}
MIT
FAQs
*Quick Start:*
We found that google-places-address-normalizer demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.