{"id":17300444,"url":"https://github.com/atomantic/jquery.gmapdirections","last_synced_at":"2025-07-31T09:31:55.317Z","repository":{"id":1211935,"uuid":"1126876","full_name":"atomantic/jquery.gmapDirections","owner":"atomantic","description":"Simple jquery driven wrapper and form handler for the Google Maps Driving Directions API","archived":false,"fork":false,"pushed_at":"2013-06-17T18:56:50.000Z","size":171,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-10-16T11:28:01.626Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://atomantic.github.com/jquery.gmapDirections","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/atomantic.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2010-11-30T21:42:56.000Z","updated_at":"2023-10-04T16:19:05.000Z","dependencies_parsed_at":"2022-07-06T12:32:38.805Z","dependency_job_id":null,"html_url":"https://github.com/atomantic/jquery.gmapDirections","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atomantic%2Fjquery.gmapDirections","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atomantic%2Fjquery.gmapDirections/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atomantic%2Fjquery.gmapDirections/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atomantic%2Fjquery.gmapDirections/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/atomantic","download_url":"https://codeload.github.com/atomantic/jquery.gmapDirections/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228232289,"owners_count":17888927,"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":[],"created_at":"2024-10-15T11:28:31.726Z","updated_at":"2024-12-05T04:20:42.202Z","avatar_url":"https://github.com/atomantic.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"#License#\n@author Adam Eivy (antic | atomantic)  \n@link [http://intellectualpirates.net](http://intellectualpirates.net)  \n\n@license Copyright (c) 2010 Adam Eivy (antic | atomantic) Dual licensed under the MIT and GPL licenses:  \n * [http://www.opensource.org/licenses/mit-license.php](http://www.opensource.org/licenses/mit-license.php)  \n * [http://www.gnu.org/licenses/gpl.html](http://www.gnu.org/licenses/gpl.html)\n\n#What it does:#\n\nThis is a simple wrapper for the Google Maps API to load a map and handle a start/end address submission for retrieving driving directions.\n\n#Usage:#\n\n1. Get a Google Maps API Key: [http://code.google.com/apis/maps/signup.html](http://code.google.com/apis/maps/signup.html)\n2. Include the needed HTML:\n\n        \u003clabel\u003eStart:\u003c/label\u003e\u003cinput type=\"text\" id=\"StartAddress\" value=\"Seattle\" /\u003e\n        \u003clabel\u003eEnd:\u003c/label\u003e\u003cinput type=\"text\" id=\"EndAddress\" value=\"Portland\" /\u003e\n        \u003cinput type=\"submit\" id=\"GetDirections\" value=\"Get Directions\" /\u003e\n        \u003cdiv id=\"Directions\"\u003e\u003c/div\u003e\n        \u003cdiv id=\"Map\"\u003e\u003c/div\u003e\n\n3. Include the needed js files:\n\n        \u003c!-- Include jQuery. Tested with jQuery \u003e= 1.9.1: http://paulirish.com/2010/the-protocol-relative-url/--\u003e\n        \u003cscript src=\"//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js\"\u003e\u003c/script\u003e    \n    \n        \u003c!-- non google fallback --\u003e\n        \u003cscript\u003e!window.jQuery \u0026\u0026 document.write(unescape('%3Cscript src=\"jquery.min.js\"%3E%3C/script%3E'))\u003c/script\u003e  \n        \n        \u003c!-- Google Maps API library (Make sure to replace YOUR_API_KEY_HERE) --\u003e\n        \u003cscript type=\"text/javascript\" src=\"http://maps.google.com/maps?file=api\u0026v=2\u0026sensor=true\u0026key=YOUR_API_KEY_HERE\"\u003e\u003c/script\u003e\n\n        \u003c!-- Load the gmapDirections wrapper --\u003e\n        \u003cscript type=\"text/javascript\" src=\"jquery.gmapDirections.js?BUILD_VERSION_NUMBER\"\u003e\u003c/script\u003e\n\n        \u003c!-- call the plugin --\u003e\n        \u003cscript type=\"text/javascript\"\u003e\n            $(function(){\n                $('#Map').gmapDirections();\n            })\n        \u003c/script\u003e\n\n4. You can override the element IDs for all the needed parts in the config object passed to the plugin. Here it is called with all the defaults:\n\n        \u003cscript type=\"text/javascript\"\u003e\n            $(function(){\n                $('#Map').gmapDirections({\n                    center: 'Seattle',             // a valid address or location search to start with\n                    directions: 'Directions',      // element ID to hold directions printout\n                    end: 'EndAddress',             // element ID for end address textfield\n                    iconHeight: 50,                // height of custom icon image\n                    iconImg: false,                // custom icon image?\n                    iconWidth: 50,                 // width of custom icon image\n                    onFail: function(){            // failed loading center element\n                        // this should be something better than an alert (something useful), but for demo purposes:\n                        alert('could not find address');\n                    },    \n                    onFinish: function(){          // after direction load\n                    },\n                    start: 'StartAddress',         // element ID for start address textfield\n                    submit: 'GetDirections',       // element ID for the action button\n                    tooltip: false,                // custom tooltip?\n                    zoom: 15                       // zoom level - refer to google maps API specs\n                });\n            })\n        \u003c/script\u003e\n\n\n#Demos:#\n\nThe repository holds a demo in index.html, which is published on the github project page:\n[Demo](http://atomantic.github.com/jquery.gmapDirections)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatomantic%2Fjquery.gmapdirections","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fatomantic%2Fjquery.gmapdirections","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatomantic%2Fjquery.gmapdirections/lists"}