{"id":20492090,"url":"https://github.com/zotonic/mod_geomap","last_synced_at":"2026-04-20T07:32:07.123Z","repository":{"id":16517969,"uuid":"19271063","full_name":"zotonic/mod_geomap","owner":"zotonic","description":"Mapping and geographical functions for Zotonic resources","archived":false,"fork":false,"pushed_at":"2022-06-30T13:14:44.000Z","size":2155,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-03-05T17:41:17.521Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zotonic.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2014-04-29T09:32:33.000Z","updated_at":"2023-01-31T15:08:46.000Z","dependencies_parsed_at":"2022-09-10T09:24:00.407Z","dependency_job_id":null,"html_url":"https://github.com/zotonic/mod_geomap","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zotonic/mod_geomap","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zotonic%2Fmod_geomap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zotonic%2Fmod_geomap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zotonic%2Fmod_geomap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zotonic%2Fmod_geomap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zotonic","download_url":"https://codeload.github.com/zotonic/mod_geomap/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zotonic%2Fmod_geomap/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32037860,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T00:18:06.643Z","status":"online","status_checked_at":"2026-04-20T02:00:06.527Z","response_time":94,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-11-15T17:27:36.460Z","updated_at":"2026-04-20T07:32:07.108Z","avatar_url":"https://github.com/zotonic.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"mod_geomap\n==========\n\nSupport for displaying maps and adding geographical locations to\n:term:`resources \u003cresource\u003e` in the admin.\n\nCalculates quadtile codes from lat/long location stored in Zotonic\nresources, and other geo-related functionality.\n\nUses OpenStreetMap for display of maps in the admin and on Zotonic\nwebsites.\n\n\nConfiguration\n-------------\n\nThis modules has the following configuration keys:\n\n * `mod_geomap.provider` Either `openlayers` (default) or `googlemaps`\n * `mod_geomap.google_api_key` The API Key for Google Maps requests\n * `mod_geomap.location_lat` Default latitude for map views\n * `mod_geomap.location_lng` Default longitude for map views\n * `mod_geomap.zoomlevel` Default zoomlevel for map views (0..29)\n\n\nSearch query: geo_nearby\n------------------------\n\nThe module exposes a new search query type called `geo_nearby`, which is used like this:\n\n    {% with m.search[{geo_nearby id=1306 distance=10}] as results %}\n\nRequired parameters are `id` or (`lat`+`lng`), and `distance` (which\nspecifies the search radius in kilometers).\n\nThe results are ordered, the nearest location is given first. (When\nthe `id` parameter is given, the first result is thus the id itself).\n\nOptional parameters are `cat`, which can be a list of categories to\nwhich to restrict the resulting resources to.\n\n\nService: /api/geomap/nearby\n---------------------------\n\nRetrieve a list of resources with (basic) information about them, all\nof which are in the vicinity of the given resource or lat/lng pair.\n\nInternally uses the `geo_nearby` search mechanism, and has the same parameters.\n\nIt returns a list of JSON objects with for each resource the following\nresource properties: id, title, summary, location_lat, location_lng,\nlocation_zoom_level, created, modified, publication_start, image_url.\n\nService: /api/geomap/locations\n------------------------------\n\nThe module exposes an API service at `/api/geomap/locations`, which\nreturns a list of locations for the search or id given.\n\n\nCustom tag: geomap_static\n-------------------------\n\nShows a location’s map using static images from OpenStreetMap.\n\n    {% geomap_static latitude=52.34322 longitude=4.33423 %}\n\nThe location is taken from the tag’s `latitude` + `longitude`\nparameters, or, when absent, from the `id` parameter which is supposed\nto be a Zotonic resource of category `location` (e.g. having an\naddress).\n\nIt displays the `_geomap_static.tpl` template.\n\nOther parameters:\n\n`zoom`\n  Zoom level (defaults to 14)\n\n`n`\n  How many rows and cols to display (defaults for the `rows` and `cols` parameters), defaults to 2.\n\n`cols`\n  How many grid columns to display\n\n`rows`\n  How many grid rows to display\n\n`size`\n  The size in pixels of each tile, defaults to 256.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzotonic%2Fmod_geomap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzotonic%2Fmod_geomap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzotonic%2Fmod_geomap/lists"}