# Auto address lookup via Google API - Unit number not working

**URL:** <https://community.gravityforms.com/t/auto-address-lookup-via-google-api-unit-number-not-working/17822>\
**Category:** Get Help\
**Tags:** custom, gravity-wiz, unit-number, geolocation\
**Created:** [July 9, 2024, 6:30am UTC](https://community.gravityforms.com/t/auto-address-lookup-via-google-api-unit-number-not-working/17822 "2024-07-09T06:30:43Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![user5ef14996dda47233](https://avatars.discourse-cdn.com/v4/letter/u/ac8455/32.png) [@user5ef14996dda47233](https://community.gravityforms.com/u/user5ef14996dda47233)\
**Post date:** [July 9, 2024, 6:30am UTC](https://community.gravityforms.com/t/auto-address-lookup-via-google-api-unit-number-not-working/17822/1 "2024-07-09T06:30:43Z")

</div>

Hi

Im using Google API to validate the auto address lookup. But when an address has a unit number or any subpremise number, the form does not take the number from the lookup.

For example, 612/365 Little Collins St, Melbourne VIC 3000. 612 is unit number and 365 is street address.

Any input would be appreciated.

Thanks.

---

<div class="post-metadata">

**Author:** ![roxy](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/roxy/32/17307_2.png) [@roxy](https://community.gravityforms.com/u/roxy)\
**Post date:** [July 9, 2024, 8:57am UTC](https://community.gravityforms.com/t/auto-address-lookup-via-google-api-unit-number-not-working/17822/2 "2024-07-09T08:57:06Z")

</div>

Hey Patrick,

You can achieve this with the [GP Address Autocomplete Perk](https://gravitywiz.com/documentation/gravity-forms-address-autocomplete/), along with our custom snippet which is used to capture the unit number.

Here’s a link to the snippet: [Always Use Subpremise/Unit Numbers | Gravity Wiz Snippet Library](https://gravitywiz.com/snippet-library/gpaa-always-use-subpremise/)

Cheers,

---

<div class="post-metadata">

**Author:** ![user5ef14996dda47233](https://avatars.discourse-cdn.com/v4/letter/u/ac8455/32.png) [@user5ef14996dda47233](https://community.gravityforms.com/u/user5ef14996dda47233)\
**Post date:** [July 11, 2024, 3:43am UTC](https://community.gravityforms.com/t/auto-address-lookup-via-google-api-unit-number-not-working/17822/3 "2024-07-11T03:43:35Z")

</div>

I dont think this still works. Your sample site does not even have the ability and how we can test this functionality without buying the perk?

---

<div class="post-metadata">

**Author:** ![richardw8k](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/richardw8k/32/2354_2.png) [@richardw8k](https://community.gravityforms.com/u/richardw8k)\
**Post date:** [August 6, 2024, 4:05pm UTC](https://community.gravityforms.com/t/auto-address-lookup-via-google-api-unit-number-not-working/17822/4 "2024-08-06T16:05:34Z")

</div>

This issue is fixed in Gravity Forms Geolocation Add-on version 1.2.1, which is available now from the [downloads](https://www.gravityforms.com/my-account/downloads/) page for manual installation, following the steps at [How to Manually Update Gravity Forms - Gravity Forms Documentation](https://docs.gravityforms.com/how-to-manually-update/)

The fix will also be included in the next auto-update release,1.3, but we don’t have a release date set for that at this time.

Once updated, you’ll also need to clear/flush any caching and script optimization plugins and services the site may be using, as well as your browser cache.

---

<div class="post-metadata">

**Author:** ![chrishajer](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/chrishajer/32/88_2.png) [@chrishajer](https://community.gravityforms.com/u/chrishajer)\
**Post date:** [August 9, 2024, 7:21pm UTC](https://community.gravityforms.com/t/auto-address-lookup-via-google-api-unit-number-not-working/17822/5 "2024-08-09T19:21:04Z")

</div>


