# How this can happen with the map ? Just How

**URL:** <https://community.glideapps.com/t/how-this-can-happen-with-the-map-just-how/63677>\
**Category:** Ask for Help\
**Created:** [July 8, 2023, 4:54pm UTC](https://community.glideapps.com/t/how-this-can-happen-with-the-map-just-how/63677 "2023-07-08T16:54:01Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Carter](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/carter/32/45004_2.png) [@Carter](https://community.glideapps.com/u/Carter)\
**Post date:** [July 8, 2023, 4:54pm UTC](https://community.glideapps.com/t/how-this-can-happen-with-the-map-just-how/63677/1 "2023-07-08T16:54:01Z")

</div>

Please tell me how this can happen ?

here was a address of a event, how the map show me Cambodgia… wtf ?

 ![Capture d’écran 2023-07-08 à 17.50.23](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/9/2/92cd1d7799fe66df147eed33bc38d840225a1cd4.png)

look where the map say the event is …

 ![Capture d’écran 2023-07-08 à 17.49.39](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/5/a/5adf9bd31eeb6a4341a994abcca611ef10e318cc.jpeg)

Edit: Even if I dot a template and replace Schweiz by Switzerland this still wrong… someone can help me ?

---

<div class="post-metadata">

**Author:** ![Robert\_Petitto](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/robert_petitto/32/25193_2.png) [@Robert\_Petitto](https://community.glideapps.com/u/Robert_Petitto)\
**Post date:** [July 8, 2023, 5:04pm UTC](https://community.glideapps.com/t/how-this-can-happen-with-the-map-just-how/63677/2 "2023-07-08T17:04:40Z")

</div>

Sometimes Mapbox will generate false results when using text based addresses. It’s much more reliable to use coordinates. Perhaps use the Radar integration to convert address to coordinates and then use those for the map component

---

<div class="post-metadata">

**Author:** ![Carter](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/carter/32/45004_2.png) [@Carter](https://community.glideapps.com/u/Carter)\
**Post date:** [July 8, 2023, 5:13pm UTC](https://community.glideapps.com/t/how-this-can-happen-with-the-map-just-how/63677/3 "2023-07-08T17:13:26Z")

</div>

I mean I understand with an incomplete address this can fail, but how can fail if you have “CH” and “Switzerland” in your address… like I don’t understand.

---

<div class="post-metadata">

**Author:** ![Robert\_Petitto](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/robert_petitto/32/25193_2.png) [@Robert\_Petitto](https://community.glideapps.com/u/Robert_Petitto)\
**Post date:** [July 8, 2023, 5:16pm UTC](https://community.glideapps.com/t/how-this-can-happen-with-the-map-just-how/63677/4 "2023-07-08T17:16:11Z")

</div>

Not sure, but it happens. Sometimes I’ll have a complete address that points to a small town in an American state but instead Mapbox thinks it’s in the Middle East somewhere. 🤷‍♂️

Coordinates are more reliable.

---

<div class="post-metadata">

**Author:** ![Carter](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/carter/32/45004_2.png) [@Carter](https://community.glideapps.com/u/Carter)\
**Post date:** [July 8, 2023, 5:20pm UTC](https://community.glideapps.com/t/how-this-can-happen-with-the-map-just-how/63677/5 "2023-07-08T17:20:25Z")

</div>

BTW it happen only in like 6 events of 16’000 events… so I just delete this 6 events fuck it 🤣

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [July 8, 2023, 6:50pm UTC](https://community.glideapps.com/t/how-this-can-happen-with-the-map-just-how/63677/6 "2023-07-08T18:50:01Z")

</div>

For all we know, it could be pointing to the Switzerland embassy in Cambodia. I mean, how can you say with 100% confidence that the word Switzerland in the address is referring to the country, and not any other address in the world that has Switzerland in the name or address of the location? Other than the fact that we just know…how does a computer know? At best, it’s a loose form of AI and we all know how well AI can hallucinate sometimes.

Writing code that can reliability parse and interpret the million ways to write an address is hard. Then to reliably cross reference that to a real address to obtain corresponding coordinates to pinpoint on a map is another thing. That’s the problem when you have only one address field as opposed to separate name, address, city, state, country, etc. Nobody writes addresses in one standard format, so it leads to a lot of interpretation by the programmer when trying to work with such a variable input.

This thing is, Google has a lot of money to get it right, or close to right…Mapbox, probably not so much, and that’s why they are cheaper to integrate. If I were to guess, Mapbox’s geocoding ability is probably more accurate with United States addresses.

---

<div class="post-metadata">

**Author:** ![Carter](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/carter/32/45004_2.png) [@Carter](https://community.glideapps.com/u/Carter)\
**Post date:** [July 8, 2023, 6:54pm UTC](https://community.glideapps.com/t/how-this-can-happen-with-the-map-just-how/63677/7 "2023-07-08T18:54:58Z")

</div>

That’s understandable, so how could Mapbox not be wrong? Because for example a postal code with CH-1900 it is impossible to be wrong because there are universal codes for each country in the world, is there a way to force MAPBOX to interpret an address?

For example force mapbox to understand that we spoke of a city and or a country? I don’t know there may be a way of doing things at Mapbox that I don’t know…

Like for dates, maybe we are obligate to set country first or I don’t know

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [July 8, 2023, 7:12pm UTC](https://community.glideapps.com/t/how-this-can-happen-with-the-map-just-how/63677/8 "2023-07-08T19:12:52Z")

</div>

Searching for CH-1900 in Google maps gives me no definitive results, although it shows me several random possibilities.

 ![Screenshot_20230708-140232](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/d/2/d24234b375cc7daaca9ba2bad7bbd47c140cea2b.jpeg)

Same with Switzerland. Several matches all over the place.

 ![Screenshot_20230708-140408](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/1/0/100f3c913e791fddda3e98a18d1dec1ea67e60c9.jpeg)

It’s basically a confidence score. How confident is code that the match was really what a user wanted out of probably hundreds of possible matches.

The way that Mapbox is integrated into Glide, we can only feed it one value for an address. I don’t think there is a way to specify what we are searching for, or specify a country. It’s a best “guess” on Mapbox’s part.

The only thing that is reliable and standard across the world is coordinates. Coordinates will give you the correct location every single time.

---

<div class="post-metadata">

**Author:** ![Carter](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/carter/32/45004_2.png) [@Carter](https://community.glideapps.com/u/Carter)\
**Post date:** [July 8, 2023, 7:19pm UTC](https://community.glideapps.com/t/how-this-can-happen-with-the-map-just-how/63677/9 "2023-07-08T19:19:05Z")

</div>

Of course, this is understandable in view of the infinite addresses in the world, on the other hand where I have a certainty it is this one. If we can force mapbox to interpret the country code of the address, then there will be no possible error.

 ![Capture d’écran 2023-07-08 à 20.14.34](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/8/a/8ae66732d774d530469236ec556db53961a8918c.jpeg)

This screen was used from mapbox website, so maybe it’s just something to incorporate on Glide idk…

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [July 8, 2023, 7:48pm UTC](https://community.glideapps.com/t/how-this-can-happen-with-the-map-just-how/63677/10 "2023-07-08T19:48:12Z")

</div>

It’s a crapshoot. For some it’s successful. For others it’s not.

I tried your Swiss address and it yielded no results on Mapbox’s site.

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/9/b/9b8789e57f6485f34d4927a59947c8754238a8ca.jpeg)

But when I specified the country, it did seem to work better.

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/8/6/862d552efeba6a72fd0885ec81ea21e6d14d0c6d.png)  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/0/6/06da223a42b36c148af22de032d9516b295a2014.jpeg)

So yeah, I guess if Glide provided a way to pass a country code to the API, it would help. But we do have alternative integrations such as Radar, which may be more accurate.

---

<div class="post-metadata">

**Author:** ![Carter](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/carter/32/45004_2.png) [@Carter](https://community.glideapps.com/u/Carter)\
**Post date:** [July 8, 2023, 8:05pm UTC](https://community.glideapps.com/t/how-this-can-happen-with-the-map-just-how/63677/11 "2023-07-08T20:05:38Z")

</div>

I gonna take a look of Radar, We need too have a subscription ? Because my app gonna have like 17’000 events…

---

<div class="post-metadata">

**Author:** ![Carter](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/carter/32/45004_2.png) [@Carter](https://community.glideapps.com/u/Carter)\
**Post date:** [July 8, 2023, 8:29pm UTC](https://community.glideapps.com/t/how-this-can-happen-with-the-map-just-how/63677/12 "2023-07-08T20:29:35Z")

</div>

It would be very nice If we can put this on the api because we have this bug in a lot of events…

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [July 9, 2023, 1:00am UTC](https://community.glideapps.com/t/how-this-can-happen-with-the-map-just-how/63677/13 "2023-07-09T01:00:26Z")

</div>

> [@Carter](#):
>
> We need too have a subscription ?

I haven’t used the Radar integration, so I’m not sure what’s all needed to use it. I’ve just seen it mentioned several times in the forum.

> [@Carter](#):
>
> It would be very nice If we can put this on the api

Might be worth creating a Feature Request for this.
