diff options
| author | IT Fixcomart <it@fixcomart.co.id> | 2025-09-10 10:16:33 +0000 |
|---|---|---|
| committer | IT Fixcomart <it@fixcomart.co.id> | 2025-09-10 10:16:33 +0000 |
| commit | 3c37a43c9870df2fd9134b05086427c8be8b794f (patch) | |
| tree | 0dc9f73fd38d36d6a1ad99124f397a0b5e3f7548 /src/lib/maps/components/PinPointMap.jsx | |
| parent | c56b5adb52caf9cbb070966216e122fcbee0a624 (diff) | |
| parent | bd276355e5b2090628d3ad10e95f2c118e883ab2 (diff) | |
Merged in validation_address (pull request #462)
<hafid> fix address override
Diffstat (limited to 'src/lib/maps/components/PinPointMap.jsx')
| -rw-r--r-- | src/lib/maps/components/PinPointMap.jsx | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/lib/maps/components/PinPointMap.jsx b/src/lib/maps/components/PinPointMap.jsx index 753f65c7..a9ead055 100644 --- a/src/lib/maps/components/PinPointMap.jsx +++ b/src/lib/maps/components/PinPointMap.jsx @@ -96,10 +96,15 @@ const PinpointLocation = ({ const formattedAddress = data.results[0].formatted_address; const details = { - // street: - // getAddressComponent(addressComponents, 'route') + - // ' ' + - // getAddressComponent(addressComponents, 'street_number'), + street: [ + getAddressComponent(addressComponents, 'route'), + getAddressComponent(addressComponents, 'street_number'), + getAddressComponent(addressComponents, 'administrative_area_level_4'), + getAddressComponent(addressComponents, 'administrative_area_level_3'), + getAddressComponent(addressComponents, 'administrative_area_level_2'), + getAddressComponent(addressComponents, 'administrative_area_level_1'), + getAddressComponent(addressComponents, 'postal_code'), + ].filter(Boolean).join(', '), province: getAddressComponent( addressComponents, 'administrative_area_level_1' |
