Skip to main content

A simple Python library for creating interactive maps with markers, circles, and custom icons

Project description

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()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mapconfig-1.0.2.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mapconfig-1.0.2-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file mapconfig-1.0.2.tar.gz.

File metadata

  • Download URL: mapconfig-1.0.2.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.6

File hashes

Hashes for mapconfig-1.0.2.tar.gz
Algorithm Hash digest
SHA256 c9e5106cb77010cbaf60567dcec11a3385ddc8a8b1f528311a52eb4ec76017b2
MD5 77ba28944491c7c78be759a2fbe2a13e
BLAKE2b-256 bda92135f512c1d8194b4e9dfa82cf3a1ab038ceef97b8980ff0bc93f11613ae

See more details on using hashes here.

File details

Details for the file mapconfig-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: mapconfig-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 5.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.6

File hashes

Hashes for mapconfig-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1238991b534d7ad835d9a75198f11bdf68fbc9a83219a29c553083440391a24a
MD5 22b655ad0afb60bb8ca424a5df52928c
BLAKE2b-256 ff1dfb0271dea11da78e35244d36ad5e352ca8b36c1088ce4a76d9be4172660a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page