Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update for 2025-02-06 #649

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@fused.udf
def udf(
bbox: fused.types.TileGDF,
release: str = "2025-01-10",
release: str = "2025-02-06",
min_zoom: int = 10,
use_columns: list = ["geometry", "name", "fsq_category_ids"],
):
Expand Down
44 changes: 22 additions & 22 deletions public/Foursquare_Open_Source_Places/meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
"entrypoint": "udf",
"parameters": {},
"metadata": {
"fused:description": "Places of interest (POIs) from [Foursquare Open Source Places](https://opensource.foursquare.com/os-places/) hosted on [Source Coop](https://source.coop/repositories/fused/fsq-os-places)\n",
"fused:vizConfig": {
"tileLayer": {
"@@type": "TileLayer",
Expand Down Expand Up @@ -83,11 +82,10 @@
"fused:slug": "Foursquare_Open_Source_Places",
"fused:name": "Foursquare_Open_Source_Places",
"fused:id": null,
"fused:gitUrl": "https://github.com/fusedio/udfs/tree/dbd5afb9ae365cc9de22d02116dd3c6a9a5a2fa6/public/Foursquare_Open_Source_Places/",
"fused:gitShortUrl": "https://github.com/fusedio/udfs/tree/dbd5afb/public/Foursquare_Open_Source_Places/",
"fused:gitUrl": "https://github.com/fusedio/udfs/tree/45a7cd9d674d8ac6920774a0a3c9ea1a32e5df4c/public/Foursquare_Open_Source_Places/",
"fused:gitShortUrl": "https://github.com/fusedio/udfs/tree/45a7cd9/public/Foursquare_Open_Source_Places/",
"fused:gitPath": "public/Foursquare_Open_Source_Places",
"fused:gitRef": "dbd5afb9ae365cc9de22d02116dd3c6a9a5a2fa6",
"fused:assetUrl": "",
"fused:gitRef": "45a7cd9d674d8ac6920774a0a3c9ea1a32e5df4c",
"fused:gitAuthorNames": [
"Isaac Brodsky",
null,
Expand All @@ -108,7 +106,7 @@
"https://avatars.githubusercontent.com/in/834700?v=4",
"https://avatars.githubusercontent.com/in/885821?v=4"
],
"fused:gitLastModified": "2024-12-03T23:58:46+00:00",
"fused:gitLastModified": "2025-01-10T21:44:57+00:00",
"fused:gitRepo": "fusedio/udfs",
"fused:defaultParameters": [
{
Expand All @@ -118,7 +116,8 @@
"suggestedValues": [
"2024-11-19",
"2024-12-03",
"2025-01-10"
"2025-01-10",
"2025-02-06"
]
},
{
Expand All @@ -134,20 +133,6 @@
"suggestedValues": []
}
],
"fused:tags": [
{
"id": "fsq",
"label": "fsq"
},
{
"id": "poi",
"label": "poi"
},
{
"id": "coop",
"label": "coop"
}
],
"fused:gitHistory": [
{
"fused:description": "Places of interest (POIs) from [Foursquare Open Source Places](https://opensource.foursquare.com/os-places/) hosted on [Source Coop](https://source.coop/repositories/fused/fsq-os-places)",
Expand Down Expand Up @@ -282,7 +267,22 @@
"zoom": 10.02293460666542,
"pitch": 0,
"bearing": 0
}
},
"fused:tags": [
{
"id": "fsq",
"label": "fsq"
},
{
"id": "poi",
"label": "poi"
},
{
"id": "coop",
"label": "coop"
}
],
"fused:description": "Places of interest (POIs) from [Foursquare Open Source Places](https://opensource.foursquare.com/os-places/) hosted on [Source Coop](https://source.coop/repositories/fused/fsq-os-places)\n"
},
"source": "Foursquare_Open_Source_Places.py",
"headers": [
Expand Down
6 changes: 5 additions & 1 deletion public/Foursquare_Open_Source_Places/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,11 @@ def join_fsq_categories(df, *, release):
def get_fsq_categories(release):
import pandas as pd

filename = "categories.snappy.parquet" if release == "2024-11-19" else "categories.zstd.parquet"
filename = (
"categories.snappy.parquet"
if release == "2024-11-19"
else "categories.zstd.parquet"
)

url = f"s3://fsq-os-places-us-east-1/release/dt={release}/categories/parquet/{filename}"
df_cat = pd.read_parquet(url)
Expand Down