{"id":22769771,"url":"https://github.com/bfontaine/jinja2_maps","last_synced_at":"2025-03-30T11:29:45.809Z","repository":{"id":53461814,"uuid":"54379297","full_name":"bfontaine/jinja2_maps","owner":"bfontaine","description":"Jinja2 filters for embedded maps and location URLs","archived":false,"fork":false,"pushed_at":"2021-03-30T06:44:29.000Z","size":30,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-23T23:43:40.922Z","etag":null,"topics":["jinja2","library","maps","python"],"latest_commit_sha":null,"homepage":"https://jinja2-maps.readthedocs.io/en/latest/index.html","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bfontaine.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGES.rst","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-03-21T10:19:50.000Z","updated_at":"2022-12-22T11:19:48.000Z","dependencies_parsed_at":"2022-08-18T01:05:23.247Z","dependency_job_id":null,"html_url":"https://github.com/bfontaine/jinja2_maps","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bfontaine%2Fjinja2_maps","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bfontaine%2Fjinja2_maps/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bfontaine%2Fjinja2_maps/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bfontaine%2Fjinja2_maps/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bfontaine","download_url":"https://codeload.github.com/bfontaine/jinja2_maps/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246313190,"owners_count":20757443,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["jinja2","library","maps","python"],"created_at":"2024-12-11T15:15:38.829Z","updated_at":"2025-03-30T11:29:45.768Z","avatar_url":"https://github.com/bfontaine.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"===========\njinja2_maps\n===========\n\n``jinja2_maps`` is a set of filters to display locations in Jinja2 templates.\n\n.. image:: https://travis-ci.org/bfontaine/jinja2_maps.svg?branch=master\n    :target: https://travis-ci.org/bfontaine/jinja2_maps\n\n.. image:: https://readthedocs.org/projects/jinja2-maps/badge/?version=latest\n    :target: http://jinja2-maps.readthedocs.org/en/latest/?badge=latest\n    :alt: Documentation Status\n\nInstall\n-------\n\n.. code-block::\n\n    pip install jinja2_maps\n\nSupport\n-------\n\n=============  ===  ===\nService        URL  Map\n=============  ===  ===\nOpenStreetMap  Yes  Yes\nGoogle Maps    Yes\nApple Maps     Yes\nBing Maps      Yes\nMappy          Yes\nWikimapia      Yes\nYandex Maps    Yes\nHERE Maps      Yes\nArcGIS         Yes\n=============  ===  ===\n\nBoth Python 2.x and 3.x are supported.\n\nUsage\n-----\n\nAll filters take a location as a dict with ``latitude`` and ``longitude`` keys.\nYou can also pass an object with these attributes.\n\nBefore using any template you need to add the filters to your Jinja2\nenvironment:\n\n.. code-block:: python\n\n  from jinja2_maps import activate_filters\n  activate_filters(your_env)\n\nIf using Flask you can do the following:\n\n.. code-block:: python\n\n  from jinja2_maps import activate_filters\n  activate_filters(app.jinja_env)\n\nURLs\n~~~~\n\n.. code-block:: html+jinja\n\n  \u003ca href=\"{{ your_location | osm_url }}\"\u003eCheck on OpenStreetMap\u003c/a\u003e\n  \u003ca href=\"{{ your_location | gmaps_url }}\"\u003eCheck on Google Maps\u003c/a\u003e\n  \u003ca href=\"{{ your_location | apple_maps_url }}\"\u003eCheck in Maps\u003c/a\u003e\n  \u003ca href=\"{{ your_location | bing_maps_url }}\"\u003eCheck on Bing Maps\u003c/a\u003e\n  \u003ca href=\"{{ your_location | mappy_url }}\"\u003eCheck on Mappy\u003c/a\u003e\n  \u003ca href=\"{{ your_location | arcgis_url }}\"\u003eCheck on ArcGIS\u003c/a\u003e\n  \u003ca href=\"{{ your_location | here_url }}\"\u003eCheck on HERE Maps\u003c/a\u003e\n  \u003ca href=\"{{ your_location | wikimapia_url }}\"\u003eCheck on Wikimapia\u003c/a\u003e\n  \u003ca href=\"{{ your_location | yandex_maps_url }}\"\u003eCheck on Yandex Maps\u003c/a\u003e\n\nURLs also support giving the zoom level (default is ``16``):\n\n.. code-block:: html+jinja\n\n  \u003ca href=\"{{ your_location | osm_url(zoom=12) }}\"\u003eCheck on OpenStreetMap\u003c/a\u003e\n\nMaps\n~~~~\n\n.. code-block:: html+jinja\n\n  {{ your_location | osm_map(width=500, height=400) }}\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbfontaine%2Fjinja2_maps","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbfontaine%2Fjinja2_maps","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbfontaine%2Fjinja2_maps/lists"}