llama-index-integrations/readers/llama-index-readers-maps/README.md
pip install llama-index-readers-maps
The Osmmap Loader will fetch map data from the Overpass api for a certain place or area. Version Overpass API 0.7.60 is used by this loader.
The api will provide you with all the nodes, relations, and ways for the particular region when you request data for a region or location.
The use case is here.
Let's meet Jayasree, who is extracting map features from her neighbourhood using the OSM map loader. She requires all the nodes, routes, and relations within a five-kilometer radius of her locale (Guduvanchery).
from llama_index.readers.maps import OpenMap
loader = MapReader()
documents = loader.load_data(
localarea="Guduvanchery",
search_tag="",
tag_only=True,
local_area_buffer=5000,
tag_values=[""],
)
from llama_index.readers.maps import OpenMap
loader = MapReader()
documents = loader.load_data(
localarea="Guduvanchery",
search_tag="amenity",
tag_only=True,
local_area_buffer=5000,
tag_values=["hospital", "clinic"],
)
This loader is designed to be used as a way to load data into LlamaIndex.