Files
posthog.com/plugins
Rafael Audibert c15da736fb feat: Programatically add dots to map (#10225)
* feat: Programatically add dots to map

Instead of having a hardcoded list of dots in our map, we're now collecting the latitude/longitude information from the information we're already collecting from everyone working at PostHog. We're doing some geocoding to transform that information into lat/long pairs.

There are some problems with the fact that there isn't much uniformity in the way everyone stores their information, so some dots are extremely innacurate.

I've attempted the following pairs and they don't work that well
- Location
- Location, Country
- Location | Country

I ultimately settled with the last one because it looks the most accurate - but there are errors still.

My suggestion: we should suggest everyone to fill their "Location" field with either a "city, country" tuple or simply the long form of their country name, which **should** make the map more accurate.

* feat: Remove name from old employee

* add schema to allow builds without a mapbox token

---------

Co-authored-by: Eli Kinsey <eli@ekinsey.dev>
2025-01-29 19:22:11 -08:00
..