!pip install folium httpx¶
In [2]:
Copied!
import json
import httpx
from folium import Map, TileLayer
%matplotlib inline
import json
import httpx
from folium import Map, TileLayer
%matplotlib inline
Matplotlib is building the font cache; this may take a moment.
In [8]:
Copied!
titiler_endpoint ="https://titiler.xyz"
url = ""
titiler_endpoint ="https://titiler.xyz"
url = ""
In [ ]:
Copied!
r = httpx.get(
f"{titiler_endpoint}/cog/info",
params = {
"url": url,
}
).json()
bound =r["bounds"]
print(r)
r = httpx.get(
f"{titiler_endpoint}/cog/info",
params = {
"url": url,
}
).json()
bound =r["bounds"]
print(r)
In [ ]:
Copied!
r =httpx.get(
f"{titiler_endpoint}/coh/tilejson.json",
params={
"url"=url,
}
).json
m=map(
location=((bounds[1] + bounds[3]) / 2,(bounds[0] + bounds[2]) / 2),
zoom_start = 13
)
r =httpx.get(
f"{titiler_endpoint}/coh/tilejson.json",
params={
"url"=url,
}
).json
m=map(
location=((bounds[1] + bounds[3]) / 2,(bounds[0] + bounds[2]) / 2),
zoom_start = 13
)