text-geo-map turns plain text location descriptions into standardized geospatial data for interactive maps.
Project description
Package Title
Transforming Text Descriptions to Structured Geospatial Data
About the Package
A new Python package that converts plain text descriptions of locations into structured geospatial data. The package extracts and validates key details such as coordinates, addresses, or landmarks from the text and outputs the information in a standardized format.
Installing
Install the package via pip:
pip install text_geo_map
Using the Package
from text_geo_map import text_geo_map
user_input = "The Eiffel Tower in Paris, France"
response = text_geo_map(user_input)
print(response)
Parameters
The text_geo_map function accepts the following parameters:
user_input: The text description of a location.llm: An instance of the LangChainBaseChatModelto use for LL7 queries (default isChatLLM7fromlangchain_llm7).api_key: The API key for LLM7 (default isNone, which will use theLLM7_API_KEYenvironment variable).
You can also pass your own instance of a LangChain chat model by using the llm parameter. For example:
import os
from langchain OpenAI import ChatOpenAI
from text_geo_map import text_geo_map
llm = ChatOpenAI()
response = text_geo_map(user_input, llm=llm)
Example to use the Anthropics:
import os
from langchain_anthropic import ChatAnthropic
from text_geo_map import text_geo_map
llm = ChatAnthropic()
response = text_geo_map(user_input, llm=llm)
Example to use the Google generative ai:
import os
from langchain_google_genai import ChatGoogleGenerativeAI
from text_geo_map import text_geo_map
llm = ChatGoogleGenerativeAI()
response = text_geo_map(user_input, llm=llm)
Note: The default rate limits for LLM7 free tier should be sufficient for most use cases of this package. If you need higher rate limits, you can pass your own API key via the environment variable LLM7_API_KEY or directly as the api_key parameter.
You can obtain a free API key by registering on https://token.llm7.io/.
Documentation
More information can be found on the GitHub repository at: https://github.com/chigwell/
Author
This package was created by Eugene Evstafev and can be reached at hi@euegne.plus.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file text_geo_map-2025.12.21225445.tar.gz.
File metadata
- Download URL: text_geo_map-2025.12.21225445.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f2a515d6044e6d524d2a819b5755110d5ae521d999c5a735d68ccdea539b316d
|
|
| MD5 |
2ea8e089ff2a7c726c448349cb7d06b2
|
|
| BLAKE2b-256 |
8250313cf6250a917260b7b09dcf66ce3fc8420f557e570f99fdf50a53be386a
|
File details
Details for the file text_geo_map-2025.12.21225445-py3-none-any.whl.
File metadata
- Download URL: text_geo_map-2025.12.21225445-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9684af814a88bbc6b204c539833ca2ffbfb97ae370ef37bf15f411aa64a95223
|
|
| MD5 |
41dbeb6e02fad0e6adbddc15d309c333
|
|
| BLAKE2b-256 |
0fe903f2d5c9afac8ce77d2b183e5f0b644c5ae9f77ec80057be3a4415829304
|