MapConfig
MapConfig is a simple, lightweight Python library for creating beautiful interactive maps using only place names (for example, "New Delhi", "Paris", "Tokyo") without needing to know coordinates.
It uses OpenStreetMap's Nominatim API to fetch coordinates and Folium to render maps.
⭐ Features
- 🔥 Add simple markers with just a place name
- 📍 Add circles to highlight areas
- 🖼️ Add custom icon markers
- 💨 Automatically center and display in the browser (no saving needed)
- 🌐 Show directly in a popup browser tab or export as HTML
- 🛣️ Add paths between two places
- 🗺️ Show shortest path between two places
- 🌤️ Add weather information to markers
- 🚀 More coming soon..
🚀 Available Function
1. add_marker(place_name, popup=None)
2. add_circle(place_name, radius=5000, color='blue', popup="Area")
3. add_custom_icon_marker(place_name, icon_url, icon_size=(30, 30), popup="Custom Icon")
4. add_path(start_place, end_place, color='blue', weight=5, popup=None)
5. add_shortest_path(start_place, end_place, color='blue', weight=5, popup=None)
6. get_distance(start_place, end_place)
7. show()
8. save(filepath="my_map.html")
Example
from mapconfig import GeoMap
m = GeoMap()
m.add_marker("New Delhi", popup="Capital City") # will also display weather information
m.add_circle("Hyderabad", radius=10000, color="green", popup="Cyber Hub")
m.add_custom_icon_marker("Chennai", icon_url="https://cdn-icons-png.flaticon.com/512/684/684908.png", popup="Beach City")
m.add_path("New Delhi", "Hyderabad", color="blue", weight=3, popup="Path from New Delhi to Hyderabad")
m.add_shortest_path("New Delhi", "Hyderabad", color="blue", weight=3, popup="Shortest path from New Delhi to Hyderabad")
m.show()
Metadata
Release files for mapconfig 1.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| mapconfig-1.0.2.tar.gz | 4.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mapconfig-1.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.6 kB
Release files / mapconfig-1.0.2.tar.gz
| Download URL | mapconfig-1.0.2.tar.gz |
|---|---|
| Size | 4.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c9e5106cb77010cbaf60567dcec11a3385ddc8a8b1f528311a52eb4ec76017b2
|
|
BLAKE2b-256 checksum How to use checksums |
bda92135f512c1d8194b4e9dfa82cf3a1ab038ceef97b8980ff0bc93f11613ae
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.6
|
Release files / mapconfig-1.0.2-py3-none-any.whl
| Download URL | mapconfig-1.0.2-py3-none-any.whl |
|---|---|
| Size | 5.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1238991b534d7ad835d9a75198f11bdf68fbc9a83219a29c553083440391a24a
|
|
BLAKE2b-256 checksum How to use checksums |
ff1dfb0271dea11da78e35244d36ad5e352ca8b36c1088ce4a76d9be4172660a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.6
|