{ "info": { "author": "Rafa Munoz", "author_email": "rafa93m@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "\ufeff# PYEMTAPI\n\nPython library to access some functionality of the REST API of the Municipal Transport Company of Madrid.\n\nYou can see all the information about the API [here](http://opendata.emtmadrid.es/).\n\n## Requirements\nIn order to attack the **EMT API** it is necessary to request credentials through the form [http://opendata.emtmadrid.es/Formulario](http://opendata.emtmadrid.es/Formulario). The keys arrive automatically, they do not do manual validation of the requests.\n\nIt is also necessary to have the following python library installed.\n\n> urllib3 >= v1.22\n\n## How to install\nYou can install the **py_emt** library by executing the following command.\n>pip install pyemtapi\n\n## How to use\n\n**Import and authenticate against the API.**\n```python\n#!/usr/bin/python \n# -*- coding: utf-8 -*-\nimport pyemtapi\n \nidClient = 'You idClient' \npassKey = 'You passKey'\n\napi = pyemtapi.EMT(idClient, passKey)\n```\n**Finally, make the request by selecting a method.**\n```python\n# Returns a line/s route with the vertex info to build the route and coordinates for stops and axes \nprint(api.GetRouteLines(\"04/05/2018\", \"26|27\"))\n```\n\n> In the example.py file of this repository, you have an example with all the available methods.\n\n**Response**\n\nAll the request will be of JSON type.\n\n\n### Bus Methods \n\n| Methods|Description |\n| ---------|-------------|\n| GetRouteLines| Returns a line/s route with the vertex info to build the route and coordinates for stops and axes |\n| GetRouteLinesRoute| Get line route with vertex info to build map and coordinates for Stops |\n| GetCalendar| Get EMT Calendar for all days and line schedules for a range of dates|\n| GetListLines| Returns lines with description and groups |\n| GetListLinesExtend | Returns lines with description and groups with more information.|\n| GetGroups| Returns every line type and their details |\n| GetTimesLines| Returns current schedules for the requested lines|\n| GetTimeTableLines| Provide information of the requested line with a trip-level detail.|\n| GetNodesLines| Returns all stop identifiers and his coordinate, name, lines and directions|\n\n\n\n### Geo Methods \n\n| Methods|Description |\n| ---------|-------------|\n| GetStreet| Returns a list of EMT nodes related to a location. All EMT locations are a group of stops within a target radius and the lines related to each stop in the list.|\n| GetStopsFromStop| Returns a list of stops from a target stop with a target radius and the lines arriving to those stops.|\n| GetStopsFromXY| Returns a list of stops from a coordinate with a radius and the lines arriving to those stops.|\n| GetArriveStop| Gets bus arrive info to a target stop |\n| GetPointsOfInterest| Returns a list of Points of Interest from a coordinate center with a target radius|\n| GetPointsOfInterestTypes| Returns a list of Point of interest types|\n| GetStreetFromXY| Returns a list of stops from a target coordinate.|\n| GetInfoLine| Returns line info in a target date|\n| GetInfoLineExtend| Returns line info in a target date with more information.|\n| GetStopsLine| Provices information about the requested line at travel time.|\n| GeoGetGroups| Return a list of groups |", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/RafaMunoz/pyemtapi", "keywords": "api emt madrid python", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "pyemtapi", "package_url": "https://pypi.org/project/pyemtapi/", "platform": "", "project_url": "https://pypi.org/project/pyemtapi/", "project_urls": { "Homepage": "https://github.com/RafaMunoz/pyemtapi" }, "release_url": "https://pypi.org/project/pyemtapi/1.0/", "requires_dist": null, "requires_python": "", "summary": "Python library to access some functionality of the REST API of the Municipal Transport Company of Madrid.", "version": "1.0" }, "last_serial": 3837395, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "92877f71714abdd0e665d2562ce8f490", "sha256": "5cf215d88ad094cf505eccaf8f4483a2a5e9e28d1b62862d5ccf6da8c188b53b" }, "downloads": -1, "filename": "pyemtapi-1.0.tar.gz", "has_sig": false, "md5_digest": "92877f71714abdd0e665d2562ce8f490", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5712, "upload_time": "2018-05-05T19:32:58", "url": "https://files.pythonhosted.org/packages/b6/eb/340733f9c364218a04baa293210df9643a564227915119f786d1dae2bfd0/pyemtapi-1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "92877f71714abdd0e665d2562ce8f490", "sha256": "5cf215d88ad094cf505eccaf8f4483a2a5e9e28d1b62862d5ccf6da8c188b53b" }, "downloads": -1, "filename": "pyemtapi-1.0.tar.gz", "has_sig": false, "md5_digest": "92877f71714abdd0e665d2562ce8f490", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5712, "upload_time": "2018-05-05T19:32:58", "url": "https://files.pythonhosted.org/packages/b6/eb/340733f9c364218a04baa293210df9643a564227915119f786d1dae2bfd0/pyemtapi-1.0.tar.gz" } ] }