Skip to content

Commit

Permalink
Update GeoJSON url, Add dependency on brotlicffi
Browse files Browse the repository at this point in the history
  • Loading branch information
Zaczero committed Jan 10, 2024
1 parent 9d50d8d commit aa74d9a
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
10 changes: 6 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Created by https://www.toptal.com/developers/gitignore/api/dotenv,python,visualstudiocode
# Edit at https://www.toptal.com/developers/gitignore?templates=dotenv,python,visualstudiocode
# Created by https://www.toptal.com/developers/gitignore/api/dotenv,python,visualstudiocode,direnv
# Edit at https://www.toptal.com/developers/gitignore?templates=dotenv,python,visualstudiocode,direnv

### direnv ###
.direnv

### dotenv ###
.env
Expand Down Expand Up @@ -194,9 +197,8 @@ pyrightconfig.json
.history
.ionide

# End of https://www.toptal.com/developers/gitignore/api/dotenv,python,visualstudiocode
# End of https://www.toptal.com/developers/gitignore/api/dotenv,python,visualstudiocode,direnv

result
data/*
cert/*

Expand Down
5 changes: 1 addition & 4 deletions config.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,7 @@
OVERPASS_API_URL = 'https://overpass-api.de/api/interpreter'
OPENSTREETMAP_API_URL = os.getenv('OPENSTREETMAP_API_URL', 'https://api.openstreetmap.org/api/0.6/')
REPLICATION_URL = 'https://planet.openstreetmap.org/replication/minute/'
COUNTRIES_GEOJSON_URL = (
'https://raw.githubusercontent.com/Zaczero/osm-countries-geojson/main/geojson/osm-countries-0-01.geojson.br'
)

COUNTRIES_GEOJSON_URL = 'https://osm-countries-geojson.monicz.dev/osm-countries-0-01.geojson.br'

DEFAULT_CACHE_MAX_AGE = timedelta(minutes=1)
DEFAULT_CACHE_STALE = timedelta(minutes=5)
Expand Down
2 changes: 1 addition & 1 deletion osm_countries.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from collections.abc import Sequence

import brotli
import brotlicffi as brotli
import orjson
from shapely.geometry import shape

Expand Down
2 changes: 1 addition & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ uvicorn = {extras = ["standard"], version = "^0.25.0"}
xmltodict = "^0.13.0"
tzfpy = "^0.15.3"
pytz = "^2023.3.post1"
brotlicffi = "^1.1.0.0"

[build-system]
build-backend = "poetry.core.masonry.api"
Expand Down

0 comments on commit aa74d9a

Please sign in to comment.