# Why search box value for Geolocation is different from Inspector?

**URL:** <https://forum.bubble.io/t/why-search-box-value-for-geolocation-is-different-from-inspector/141167>\
**Category:** Need help\
**Created:** [March 14, 2021, 3:26pm UTC](https://forum.bubble.io/t/why-search-box-value-for-geolocation-is-different-from-inspector/141167 "2021-03-14T15:26:21Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![farzad421](https://avatars.discourse-cdn.com/v4/letter/f/779978/32.png) [@farzad421](https://forum.bubble.io/u/farzad421)\
**Post date:** [March 14, 2021, 3:26pm UTC](https://forum.bubble.io/t/why-search-box-value-for-geolocation-is-different-from-inspector/141167/1 "2021-03-14T15:26:21Z")

</div>

Hi every one,  
Would someone please help me with this issue that drives me nut.

I am struggling to get users location using IP Geo and Ipipph. I am saving user’s current location on page load. I also use a search box to display user’s current location.

For some reasons, search box displays a location in USA. But the location is correct in Debugger.

![image](https://us1.discourse-cdn.com/bubble/original/3X/b/3/b3bda9c2ab6e284780e9a309cdd6e9482f4f06c1.png)  
 ![image](https://us1.discourse-cdn.com/bubble/original/3X/8/7/87a3b55941a96099e84b401749fa9ca3160c9af5.png)

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/1/f/1ff4c2892794a045161be147cc381f83d75a10ae.png)

---

<div class="post-metadata">

**Author:** ![farzad421](https://avatars.discourse-cdn.com/v4/letter/f/779978/32.png) [@farzad421](https://forum.bubble.io/u/farzad421)\
**Post date:** [March 14, 2021, 3:29pm UTC](https://forum.bubble.io/t/why-search-box-value-for-geolocation-is-different-from-inspector/141167/2 "2021-03-14T15:29:22Z")

</div>

Please note, I get correct Geolocation when I am using a text box instead of search box.  
And I see this in debugger:

![image](https://us1.discourse-cdn.com/bubble/original/3X/c/e/cebdf4177aa289682b3c7cfa66a537ddea9b6427.png)

---

<div class="post-metadata">

**Author:** ![agilityinusa](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/agilityinusa/32/87006_2.png) [@agilityinusa](https://forum.bubble.io/u/agilityinusa)\
**Post date:** [March 14, 2021, 4:49pm UTC](https://forum.bubble.io/t/why-search-box-value-for-geolocation-is-different-from-inspector/141167/3 "2021-03-14T16:49:28Z")

</div>

Looks like ipiphy pulls out the server IP (= Bubble’s IP), not user’s.  
Double check that you have installed the proper ipiphy plugin (the first one pulls out user’s IP, the second one - server’s)

 ![Screenshot 2021-03-14 at 19.43.04](https://us1.discourse-cdn.com/bubble/original/3X/4/5/45515074036002f320292277e09389f152733080.png)

---

<div class="post-metadata">

**Author:** ![farzad421](https://avatars.discourse-cdn.com/v4/letter/f/779978/32.png) [@farzad421](https://forum.bubble.io/u/farzad421)\
**Post date:** [March 14, 2021, 5:28pm UTC](https://forum.bubble.io/t/why-search-box-value-for-geolocation-is-different-from-inspector/141167/4 "2021-03-14T17:28:44Z")

</div>

Thanks @agilityinusa  
I did double check that plugin. I have installed the right plugin to pull user’s current location.  
Please see below:

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/c/9/c95bb96f6905e9d81a010ccf62a505203804c129.png)

---

<div class="post-metadata">

**Author:** ![agilityinusa](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/agilityinusa/32/87006_2.png) [@agilityinusa](https://forum.bubble.io/u/agilityinusa)\
**Post date:** [March 14, 2021, 6:26pm UTC](https://forum.bubble.io/t/why-search-box-value-for-geolocation-is-different-from-inspector/141167/5 "2021-03-14T18:26:48Z")

</div>

That’s weird, indeed.  
I would probably try Dynamic choices instead of Geographic places

---

<div class="post-metadata">

**Author:** ![boston85719](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/boston85719/32/77286_2.png) [@boston85719](https://forum.bubble.io/u/boston85719)\
**Post date:** [March 14, 2021, 8:26pm UTC](https://forum.bubble.io/t/why-search-box-value-for-geolocation-is-different-from-inspector/141167/6 "2021-03-14T20:26:56Z")

</div>

Is the user logged in? That address is a generic address loaded. I get some generic address in NJ when I first load a page that is set up to capture user IP address and uses the iphy plugin for IP address and the Geo location plugin to get the address details.

It also matters how your database is set up. Your current location field on User; is it a geographic address? Have you confirmed in your database this change is occurring and the field is being saved properly as a complete geographic address?

From you screen shot it looks like you are saving a text field with a value of the City and it might not be a geographic address.

How do you have the dynamic expression set up for making the changes? Is that using the users IP address? You should expand the screen shot of the workflow that is using the plugins to show your complete set up.

---

<div class="post-metadata">

**Author:** ![farzad421](https://avatars.discourse-cdn.com/v4/letter/f/779978/32.png) [@farzad421](https://forum.bubble.io/u/farzad421)\
**Post date:** [March 14, 2021, 9:39pm UTC](https://forum.bubble.io/t/why-search-box-value-for-geolocation-is-different-from-inspector/141167/7 "2021-03-14T21:39:17Z")

</div>

Hi @boston85719  
Yes, user is logged in and database “Current Location” is set up as geographic address. this field gets populated in database with this address \>\>\> Newmarket, NH 03857, USA".

Here is my workflow  
1- page is loaded and current user is logged in  
 ![image](https://us1.discourse-cdn.com/bubble/original/3X/4/e/4e2fb1d9fbfeabc2089702a3460e0b9ea8ff2b21.png)  
2- make a change to current user  
 ![image](https://us1.discourse-cdn.com/bubble/original/3X/2/d/2dc7c23489b8894f3f14918d8df02da1d8f44de3.png)

---

<div class="post-metadata">

**Author:** ![farzad421](https://avatars.discourse-cdn.com/v4/letter/f/779978/32.png) [@farzad421](https://forum.bubble.io/u/farzad421)\
**Post date:** [March 14, 2021, 9:47pm UTC](https://forum.bubble.io/t/why-search-box-value-for-geolocation-is-different-from-inspector/141167/8 "2021-03-14T21:47:24Z")

</div>

also, if I look by “Country” instead of “City” it returns \>\>\>\> California, USA.  
I am not sure, is there a default value somewhere in Bubble or Google API key that causes this?

---

<div class="post-metadata">

**Author:** ![boston85719](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/boston85719/32/77286_2.png) [@boston85719](https://forum.bubble.io/u/boston85719)\
**Post date:** [March 15, 2021, 1:54am UTC](https://forum.bubble.io/t/why-search-box-value-for-geolocation-is-different-from-inspector/141167/9 "2021-03-15T01:54:11Z")

</div>

![Screen Shot 2021-03-15 at 8.52.09 AM](https://us1.discourse-cdn.com/bubble/original/3X/a/0/a058c432694ef3b8e1331d369c52200dcdb0127c.png)

Show the full dynamic expression…to use that plugin correctly you need to feed it an IP address and I don’t see any IP address being fed to it with this dynamic expression…click on it to show the entire dynamic expression.

My first reaction is that on page load, the users IP address has not been obtained yet from the iphy plugin, and the users IP address is not being fed to the IP Info - Get Geo plugin

---

<div class="post-metadata">

**Author:** ![farzad421](https://avatars.discourse-cdn.com/v4/letter/f/779978/32.png) [@farzad421](https://forum.bubble.io/u/farzad421)\
**Post date:** [March 15, 2021, 2:49am UTC](https://forum.bubble.io/t/why-search-box-value-for-geolocation-is-different-from-inspector/141167/10 "2021-03-15T02:49:39Z")

</div>

Thanks for looking at this.

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/0/a/0a1fa7053d756725ef97c0e0adcf1d4b0ea292bb.png)

---

<div class="post-metadata">

**Author:** ![boston85719](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/boston85719/32/77286_2.png) [@boston85719](https://forum.bubble.io/u/boston85719)\
**Post date:** [March 15, 2021, 3:53am UTC](https://forum.bubble.io/t/why-search-box-value-for-geolocation-is-different-from-inspector/141167/11 "2021-03-15T03:53:18Z")

</div>

Try setting the current location with a workflow trigger that is when page is loaded entire is yes…I have a feeling the current setup for page is loaded is not giving it enough time to capture the current users ip address.

---

<div class="post-metadata">

**Author:** ![farzad421](https://avatars.discourse-cdn.com/v4/letter/f/779978/32.png) [@farzad421](https://forum.bubble.io/u/farzad421)\
**Post date:** [March 15, 2021, 11:58am UTC](https://forum.bubble.io/t/why-search-box-value-for-geolocation-is-different-from-inspector/141167/12 "2021-03-15T11:58:54Z")

</div>

Thanks for your advise,  
I did that already, it gives me wrong address, a place somewhere in USA. 😩

---

<div class="post-metadata">

**Author:** ![boston85719](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/boston85719/32/77286_2.png) [@boston85719](https://forum.bubble.io/u/boston85719)\
**Post date:** [March 15, 2021, 3:54pm UTC](https://forum.bubble.io/t/why-search-box-value-for-geolocation-is-different-from-inspector/141167/13 "2021-03-15T15:54:19Z")

</div>

Are you using a VPN?

---

<div class="post-metadata">

**Author:** ![farzad421](https://avatars.discourse-cdn.com/v4/letter/f/779978/32.png) [@farzad421](https://forum.bubble.io/u/farzad421)\
**Post date:** [March 16, 2021, 2:58pm UTC](https://forum.bubble.io/t/why-search-box-value-for-geolocation-is-different-from-inspector/141167/14 "2021-03-16T14:58:54Z")

</div>

No, I am not using VPN.

---

<div class="post-metadata">

**Author:** ![boston85719](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/boston85719/32/77286_2.png) [@boston85719](https://forum.bubble.io/u/boston85719)\
**Post date:** [March 16, 2021, 3:00pm UTC](https://forum.bubble.io/t/why-search-box-value-for-geolocation-is-different-from-inspector/141167/15 "2021-03-16T15:00:40Z")

</div>

If you want to make it so I can view and edit your app, feel free to send me the link to the editor in a PM and I’ll take a look at what is wrong.

---

<div class="post-metadata">

**Author:** ![farzad421](https://avatars.discourse-cdn.com/v4/letter/f/779978/32.png) [@farzad421](https://forum.bubble.io/u/farzad421)\
**Post date:** [March 16, 2021, 3:04pm UTC](https://forum.bubble.io/t/why-search-box-value-for-geolocation-is-different-from-inspector/141167/16 "2021-03-16T15:04:47Z")

</div>

Very kind of you. But I never done this before. How do i do that?

---

<div class="post-metadata">

**Author:** ![boston85719](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/boston85719/32/77286_2.png) [@boston85719](https://forum.bubble.io/u/boston85719)\
**Post date:** [March 16, 2021, 4:17pm UTC](https://forum.bubble.io/t/why-search-box-value-for-geolocation-is-different-from-inspector/141167/17 "2021-03-16T16:17:25Z")

</div>

In your editor go to settings and at the top choose the general tab…then just below that there is a section “Application Rights” with a dropdown on the far right with three choices. You would choose anyone can view and edit…then just go to the page in your editor with the problem, copy the URL and send me a PM with the link.

 ![Screen Shot 2021-03-16 at 11.16.23 PM](https://us1.discourse-cdn.com/bubble/original/3X/0/7/071a52a974798fac8bb62a83c11341023e8891f7.png)

To send a PM just click on my profile image then press the blue message button.

---

<div class="post-metadata">

**Author:** ![farzad421](https://avatars.discourse-cdn.com/v4/letter/f/779978/32.png) [@farzad421](https://forum.bubble.io/u/farzad421)\
**Post date:** [March 17, 2021, 12:13pm UTC](https://forum.bubble.io/t/why-search-box-value-for-geolocation-is-different-from-inspector/141167/18 "2021-03-17T12:13:21Z")

</div>

@boston85719  
Sorry for delay, got busy at work. I have send you a PM message.

---

<div class="post-metadata">

**Author:** ![farzad421](https://avatars.discourse-cdn.com/v4/letter/f/779978/32.png) [@farzad421](https://forum.bubble.io/u/farzad421)\
**Post date:** [March 17, 2021, 1:04pm UTC](https://forum.bubble.io/t/why-search-box-value-for-geolocation-is-different-from-inspector/141167/19 "2021-03-17T13:04:45Z")

</div>

I think I found the issue, somehow is related to my ISP/ Internet provider. I am using a third party internet provider and every time I am on Wi-Fi or connected to home internet the geo-location gives me a place in USA. I need to give them a call and find out why?

So, I used my cell phone to check the location and boom! the right geo-location was pop up.

---

<div class="post-metadata">

**Author:** ![farzad421](https://avatars.discourse-cdn.com/v4/letter/f/779978/32.png) [@farzad421](https://forum.bubble.io/u/farzad421)\
**Post date:** [March 17, 2021, 1:05pm UTC](https://forum.bubble.io/t/why-search-box-value-for-geolocation-is-different-from-inspector/141167/20 "2021-03-17T13:05:36Z")

</div>

Many thanks to @boston85719 @agilityinusa 🙏

[Next page](https://forum.bubble.io/t/why-search-box-value-for-geolocation-is-different-from-inspector/141167.md?page=2)
