stadiamaps 0.3.0__tar.gz → 0.5.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- stadiamaps-0.5.0/PKG-INFO +80 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/README.md +2 -19
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/pyproject.toml +1 -1
- stadiamaps-0.5.0/setup.py +113 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/__init__.py +1 -1
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/api_client.py +1 -1
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/configuration.py +1 -1
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/isochrone_feature.py +2 -2
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/matrix_response.py +3 -3
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/pelias_layer.py +8 -1
- stadiamaps-0.5.0/stadiamaps.egg-info/PKG-INFO +80 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps.egg-info/SOURCES.txt +6 -2
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps.egg-info/top_level.txt +1 -0
- stadiamaps-0.5.0/test/integration/__init__.py +0 -0
- stadiamaps-0.5.0/test/integration/test_eu_endpoint.py +21 -0
- stadiamaps-0.5.0/test/integration/test_gecoding.py +64 -0
- stadiamaps-0.5.0/test/integration/test_geospatial.py +31 -0
- stadiamaps-0.5.0/test/integration/test_routing.py +146 -0
- stadiamaps-0.3.0/PKG-INFO +0 -240
- stadiamaps-0.3.0/setup.py +0 -53
- stadiamaps-0.3.0/stadiamaps.egg-info/PKG-INFO +0 -240
- stadiamaps-0.3.0/test/test_gecoding_integration.py +0 -23
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/LICENSE.txt +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/setup.cfg +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/api/__init__.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/api/geocoding_api.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/api/geospatial_api.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/api/routing_api.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/api_response.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/exceptions.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/__init__.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/access.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/admin_region.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/administrative.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/auto_costing_options.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/auto_costing_options_all_of.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/base_costing_options.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/base_trace_request.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/bicycle_costing_options.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/bicycle_costing_options_all_of.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/bike_network.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/contour.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/coordinate.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/costing_model.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/costing_options.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/directions_options.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/distance_unit.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/edge_sign.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/edge_use.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/end_node.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/geo_attributes.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/geo_json_geometry.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/geo_json_geometry_base.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/geo_json_line_string.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/geo_json_line_string_all_of.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/geo_json_point.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/geo_json_point_all_of.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/geo_json_polygon.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/geo_json_polygon_all_of.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/geocoding_object.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/height_request.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/height_response.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/highway_classification.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/intersecting_edge.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/isochrone_costing_model.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/isochrone_properties.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/isochrone_request.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/isochrone_response.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/locate_detailed_edge.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/locate_edge.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/locate_edge_info.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/locate_node.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/locate_node_all_of.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/locate_object.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/maneuver_sign.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/maneuver_sign_element.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/map_match_costing_model.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/map_match_request.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/map_match_request_all_of.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/map_match_route_response.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/map_match_route_response_all_of.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/map_match_trace_options.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/map_match_waypoint.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/map_match_waypoint_all_of.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/matched_point.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/matrix_costing_model.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/matrix_distance.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/matrix_request.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/motor_scooter_costing_options.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/motor_scooter_costing_options_all_of.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/motorcycle_costing_options.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/motorcycle_costing_options_all_of.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/nearest_roads_request.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/node_id.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/node_type.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/optimized_route_request.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/pedestrian_costing_options.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/pelias_geo_json_feature.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/pelias_geo_json_properties.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/pelias_geo_json_properties_addendum.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/pelias_geo_json_properties_addendum_osm.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/pelias_response.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/pelias_response_geocoding.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/pelias_source.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/restrictions.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/road_class.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/route_leg.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/route_maneuver.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/route_request.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/route_response.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/route_response_trip.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/route_summary.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/routing_response_waypoint.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/routing_response_waypoint_all_of.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/routing_waypoint.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/routing_waypoint_all_of.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/routing_waypoint_all_of_search_filter.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/simple_routing_waypoint.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/simple_routing_waypoint_all_of.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/speeds.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/trace_attribute_filter_options.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/trace_attribute_key.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/trace_attributes_base_response.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/trace_attributes_request.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/trace_attributes_request_all_of.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/trace_attributes_request_all_of_filters.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/trace_attributes_response.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/trace_attributes_response_all_of.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/trace_edge.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/travel_mode.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/traversability.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/truck_costing_options.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/truck_costing_options_all_of.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/tz_response.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/valhalla_languages.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/valhalla_long_units.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/warning.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/rest.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps.egg-info/dependency_links.txt +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps.egg-info/requires.txt +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_access.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_admin_region.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_administrative.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_auto_costing_options.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_auto_costing_options_all_of.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_base_costing_options.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_base_trace_request.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_bicycle_costing_options.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_bicycle_costing_options_all_of.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_bike_network.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_contour.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_coordinate.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_costing_model.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_costing_options.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_directions_options.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_distance_unit.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_edge_sign.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_edge_use.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_end_node.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_geo_attributes.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_geo_json_geometry.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_geo_json_geometry_base.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_geo_json_line_string.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_geo_json_line_string_all_of.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_geo_json_point.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_geo_json_point_all_of.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_geo_json_polygon.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_geo_json_polygon_all_of.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_geocoding_api.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_geocoding_object.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_geospatial_api.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_height_request.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_height_response.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_highway_classification.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_intersecting_edge.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_isochrone_costing_model.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_isochrone_feature.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_isochrone_properties.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_isochrone_request.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_isochrone_response.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_locate_detailed_edge.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_locate_edge.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_locate_edge_info.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_locate_node.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_locate_node_all_of.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_locate_object.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_maneuver_sign.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_maneuver_sign_element.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_map_match_costing_model.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_map_match_request.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_map_match_request_all_of.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_map_match_route_response.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_map_match_route_response_all_of.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_map_match_trace_options.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_map_match_waypoint.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_map_match_waypoint_all_of.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_matched_point.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_matrix_costing_model.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_matrix_distance.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_matrix_request.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_matrix_response.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_motor_scooter_costing_options.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_motor_scooter_costing_options_all_of.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_motorcycle_costing_options.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_motorcycle_costing_options_all_of.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_nearest_roads_request.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_node_id.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_node_type.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_optimized_route_request.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_pedestrian_costing_options.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_pelias_geo_json_feature.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_pelias_geo_json_properties.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_pelias_geo_json_properties_addendum.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_pelias_geo_json_properties_addendum_osm.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_pelias_layer.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_pelias_response.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_pelias_response_geocoding.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_pelias_source.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_restrictions.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_road_class.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_route_leg.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_route_maneuver.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_route_request.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_route_response.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_route_response_trip.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_route_summary.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_routing_api.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_routing_response_waypoint.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_routing_response_waypoint_all_of.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_routing_waypoint.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_routing_waypoint_all_of.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_routing_waypoint_all_of_search_filter.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_simple_routing_waypoint.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_simple_routing_waypoint_all_of.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_speeds.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_trace_attribute_filter_options.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_trace_attribute_key.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_trace_attributes_base_response.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_trace_attributes_request.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_trace_attributes_request_all_of.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_trace_attributes_request_all_of_filters.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_trace_attributes_response.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_trace_attributes_response_all_of.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_trace_edge.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_travel_mode.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_traversability.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_truck_costing_options.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_truck_costing_options_all_of.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_tz_response.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_valhalla_languages.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_valhalla_long_units.py +0 -0
- {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_warning.py +0 -0
@@ -0,0 +1,80 @@
|
|
1
|
+
Metadata-Version: 2.1
|
2
|
+
Name: stadiamaps
|
3
|
+
Version: 0.5.0
|
4
|
+
Summary: Stadia Maps Geospatial APIs
|
5
|
+
Home-page: https://docs.stadiamaps.com/
|
6
|
+
Author: Stadia Maps Support
|
7
|
+
Author-email: support@stadiamaps.com
|
8
|
+
Keywords: OpenAPI,OpenAPI-Generator,Stadia Maps Geospatial APIs
|
9
|
+
Description-Content-Type: text/markdown
|
10
|
+
License-File: LICENSE.txt
|
11
|
+
|
12
|
+
|
13
|
+
# Stadia Maps Python API Client
|
14
|
+
|
15
|
+
The Stadia Maps Geospatial APIs provide you with the data you need to build awesome applications.
|
16
|
+
|
17
|
+
For more information about the API, please visit [https://docs.stadiamaps.com](https://docs.stadiamaps.com)
|
18
|
+
|
19
|
+
## Installation & Usage
|
20
|
+
### pip install
|
21
|
+
|
22
|
+
```shell
|
23
|
+
pip install stadiamaps
|
24
|
+
```
|
25
|
+
|
26
|
+
### Setuptools
|
27
|
+
|
28
|
+
Install via [Setuptools](http://pypi.python.org/pypi/setuptools).
|
29
|
+
|
30
|
+
```shell
|
31
|
+
python setup.py install --user
|
32
|
+
```
|
33
|
+
(or `sudo python setup.py install` to install the package for all users)
|
34
|
+
|
35
|
+
### Tests
|
36
|
+
|
37
|
+
Execute `pytest` to run the tests. These are run automatically via CI.
|
38
|
+
|
39
|
+
## Getting Started
|
40
|
+
|
41
|
+
Please follow the [installation procedure](#installation--usage) and then run the following:
|
42
|
+
|
43
|
+
```python
|
44
|
+
import os
|
45
|
+
import stadiamaps
|
46
|
+
from stadiamaps.rest import ApiException
|
47
|
+
from pprint import pprint
|
48
|
+
|
49
|
+
# Defining the host is optional and defaults to https://api.stadiamaps.com
|
50
|
+
# You can also use our EU endpoint to keep traffic within the EU by setting
|
51
|
+
# host to https://api-eu.stadiamaps.com.
|
52
|
+
# See configuration.py for a list of all supported configuration parameters.
|
53
|
+
configuration = stadiamaps.Configuration()
|
54
|
+
|
55
|
+
# The client must configure the authentication and authorization parameters
|
56
|
+
# in accordance with the API server security policy.
|
57
|
+
# Examples for each auth method are provided below, use the example that
|
58
|
+
# satisfies your auth use case.
|
59
|
+
|
60
|
+
# Configure API key authorization. This example assumes it is injected via an environment
|
61
|
+
# variable, but you can provide it in other ways as well.
|
62
|
+
configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"]
|
63
|
+
|
64
|
+
# Enter a context with an instance of the API client
|
65
|
+
with stadiamaps.ApiClient(configuration) as api_client:
|
66
|
+
# Create an instance of the API class
|
67
|
+
api_instance = stadiamaps.GeocodingApi(api_client)
|
68
|
+
text = 'Põhja pst 27a' # str | The place name (address, venue name, etc.) to search for.
|
69
|
+
|
70
|
+
try:
|
71
|
+
# Search and geocode quickly based on partial input.
|
72
|
+
api_response = api_instance.autocomplete(text)
|
73
|
+
print("The response of GeocodingApi->autocomplete:
|
74
|
+
")
|
75
|
+
pprint(api_response)
|
76
|
+
except ApiException as e:
|
77
|
+
print("Exception when calling GeocodingApi->autocomplete: %s
|
78
|
+
" % e)
|
79
|
+
```
|
80
|
+
|
@@ -35,8 +35,8 @@ from stadiamaps.rest import ApiException
|
|
35
35
|
from pprint import pprint
|
36
36
|
|
37
37
|
# Defining the host is optional and defaults to https://api.stadiamaps.com
|
38
|
-
# You can also use our EU endpoint to keep traffic within the EU
|
39
|
-
#
|
38
|
+
# You can also use our EU endpoint to keep traffic within the EU like sq:
|
39
|
+
# configuration = stadiamaps.Configuration(host="https://api-eu.stadiamaps.com")
|
40
40
|
# See configuration.py for a list of all supported configuration parameters.
|
41
41
|
configuration = stadiamaps.Configuration()
|
42
42
|
|
@@ -210,20 +210,3 @@ Authentication schemes defined for the API:
|
|
210
210
|
- **Type**: API key
|
211
211
|
- **API key parameter name**: api_key
|
212
212
|
- **Location**: URL query string
|
213
|
-
|
214
|
-
## Development
|
215
|
-
|
216
|
-
This Python package is automatically generated by [OpenAPI Generator](https://openapi-generator.tech).
|
217
|
-
To regenerate the package with an updated API spec, run the following command (make sure to replace
|
218
|
-
`X.Y.Z` with the new version number!):
|
219
|
-
|
220
|
-
```shell
|
221
|
-
openapi-generator generate -i https://api.stadiamaps.com/openapi.yaml -g python-nextgen --strict-spec=true -o . -p disallowAdditionalPropertiesIfNotPresent=false -p packageName=stadiamaps -p packageUrl=https://docs.stadiamaps.com/ -p packageVersion=X.Y.Z
|
222
|
-
```
|
223
|
-
|
224
|
-
### Caveats
|
225
|
-
|
226
|
-
The current release (6.6.0) of the generator's `python` generator is broken, but `python-nextgen` works.
|
227
|
-
The next release is scheduled to rename `python-nextgen` to `python`.
|
228
|
-
|
229
|
-
The auto-generated code (as of generator 6.6.0) does not pass flake8, so we have disabled the checks.
|
@@ -0,0 +1,113 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
"""
|
4
|
+
Stadia Maps Geospatial APIs
|
5
|
+
|
6
|
+
The Stadia Maps Geospatial APIs provide you with the data you need to build awesome applications. # noqa: E501
|
7
|
+
|
8
|
+
The version of the OpenAPI document: 5.0.1
|
9
|
+
Contact: support@stadiamaps.com
|
10
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
|
+
|
12
|
+
Do not edit the class manually.
|
13
|
+
"""
|
14
|
+
|
15
|
+
|
16
|
+
from setuptools import setup, find_packages # noqa: H301
|
17
|
+
|
18
|
+
# To install the library, run the following
|
19
|
+
#
|
20
|
+
# python setup.py install
|
21
|
+
#
|
22
|
+
# prerequisite: setuptools
|
23
|
+
# http://pypi.python.org/pypi/setuptools
|
24
|
+
NAME = "stadiamaps"
|
25
|
+
VERSION = "0.5.0"
|
26
|
+
PYTHON_REQUIRES = ">=3.7"
|
27
|
+
REQUIRES = [
|
28
|
+
"urllib3 >= 1.25.3",
|
29
|
+
"python-dateutil",
|
30
|
+
"pydantic >= 1.10.5, < 2",
|
31
|
+
"aenum"
|
32
|
+
]
|
33
|
+
|
34
|
+
setup(
|
35
|
+
name=NAME,
|
36
|
+
version=VERSION,
|
37
|
+
description="Stadia Maps Geospatial APIs",
|
38
|
+
author="Stadia Maps Support",
|
39
|
+
author_email="support@stadiamaps.com",
|
40
|
+
url="https://docs.stadiamaps.com/",
|
41
|
+
keywords=["OpenAPI", "OpenAPI-Generator", "Stadia Maps Geospatial APIs"],
|
42
|
+
install_requires=REQUIRES,
|
43
|
+
packages=find_packages(exclude=["test", "tests"]),
|
44
|
+
include_package_data=True,
|
45
|
+
long_description_content_type='text/markdown',
|
46
|
+
long_description="""
|
47
|
+
# Stadia Maps Python API Client
|
48
|
+
|
49
|
+
The Stadia Maps Geospatial APIs provide you with the data you need to build awesome applications.
|
50
|
+
|
51
|
+
For more information about the API, please visit [https://docs.stadiamaps.com](https://docs.stadiamaps.com)
|
52
|
+
|
53
|
+
## Installation & Usage
|
54
|
+
### pip install
|
55
|
+
|
56
|
+
```shell
|
57
|
+
pip install stadiamaps
|
58
|
+
```
|
59
|
+
|
60
|
+
### Setuptools
|
61
|
+
|
62
|
+
Install via [Setuptools](http://pypi.python.org/pypi/setuptools).
|
63
|
+
|
64
|
+
```shell
|
65
|
+
python setup.py install --user
|
66
|
+
```
|
67
|
+
(or `sudo python setup.py install` to install the package for all users)
|
68
|
+
|
69
|
+
### Tests
|
70
|
+
|
71
|
+
Execute `pytest` to run the tests. These are run automatically via CI.
|
72
|
+
|
73
|
+
## Getting Started
|
74
|
+
|
75
|
+
Please follow the [installation procedure](#installation--usage) and then run the following:
|
76
|
+
|
77
|
+
```python
|
78
|
+
import os
|
79
|
+
import stadiamaps
|
80
|
+
from stadiamaps.rest import ApiException
|
81
|
+
from pprint import pprint
|
82
|
+
|
83
|
+
# Defining the host is optional and defaults to https://api.stadiamaps.com
|
84
|
+
# You can also use our EU endpoint to keep traffic within the EU by setting
|
85
|
+
# host to https://api-eu.stadiamaps.com.
|
86
|
+
# See configuration.py for a list of all supported configuration parameters.
|
87
|
+
configuration = stadiamaps.Configuration()
|
88
|
+
|
89
|
+
# The client must configure the authentication and authorization parameters
|
90
|
+
# in accordance with the API server security policy.
|
91
|
+
# Examples for each auth method are provided below, use the example that
|
92
|
+
# satisfies your auth use case.
|
93
|
+
|
94
|
+
# Configure API key authorization. This example assumes it is injected via an environment
|
95
|
+
# variable, but you can provide it in other ways as well.
|
96
|
+
configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"]
|
97
|
+
|
98
|
+
# Enter a context with an instance of the API client
|
99
|
+
with stadiamaps.ApiClient(configuration) as api_client:
|
100
|
+
# Create an instance of the API class
|
101
|
+
api_instance = stadiamaps.GeocodingApi(api_client)
|
102
|
+
text = 'Põhja pst 27a' # str | The place name (address, venue name, etc.) to search for.
|
103
|
+
|
104
|
+
try:
|
105
|
+
# Search and geocode quickly based on partial input.
|
106
|
+
api_response = api_instance.autocomplete(text)
|
107
|
+
print("The response of GeocodingApi->autocomplete:\n")
|
108
|
+
pprint(api_response)
|
109
|
+
except ApiException as e:
|
110
|
+
print("Exception when calling GeocodingApi->autocomplete: %s\n" % e)
|
111
|
+
```
|
112
|
+
"""
|
113
|
+
)
|
@@ -77,7 +77,7 @@ class ApiClient(object):
|
|
77
77
|
self.default_headers[header_name] = header_value
|
78
78
|
self.cookie = cookie
|
79
79
|
# Set default User-Agent.
|
80
|
-
self.user_agent = 'OpenAPI-Generator/0.
|
80
|
+
self.user_agent = 'OpenAPI-Generator/0.5.0/python'
|
81
81
|
self.client_side_validation = configuration.client_side_validation
|
82
82
|
|
83
83
|
def __enter__(self):
|
@@ -398,7 +398,7 @@ conf = stadiamaps.Configuration(
|
|
398
398
|
"OS: {env}\n"\
|
399
399
|
"Python Version: {pyversion}\n"\
|
400
400
|
"Version of the API: 5.0.1\n"\
|
401
|
-
"SDK Package Version: 0.
|
401
|
+
"SDK Package Version: 0.5.0".\
|
402
402
|
format(env=sys.platform, pyversion=sys.version)
|
403
403
|
|
404
404
|
def get_host_settings(self):
|
@@ -39,8 +39,8 @@ class IsochroneFeature(BaseModel):
|
|
39
39
|
if value is None:
|
40
40
|
return value
|
41
41
|
|
42
|
-
if value not in ('
|
43
|
-
raise ValueError("must be one of enum values ('
|
42
|
+
if value not in ('Feature'):
|
43
|
+
raise ValueError("must be one of enum values ('Feature')")
|
44
44
|
return value
|
45
45
|
|
46
46
|
class Config:
|
@@ -110,9 +110,9 @@ class MatrixResponse(BaseModel):
|
|
110
110
|
|
111
111
|
_obj = MatrixResponse.parse_obj({
|
112
112
|
"id": obj.get("id"),
|
113
|
-
"sources": [
|
114
|
-
"targets": [
|
115
|
-
"sources_to_targets": [
|
113
|
+
"sources": [[Coordinate.from_dict(_item) for _item in _items] for _items in obj.get("sources")] if obj.get("sources") is not None else None,
|
114
|
+
"targets": [[Coordinate.from_dict(_item) for _item in _items] for _items in obj.get("targets")] if obj.get("targets") is not None else None,
|
115
|
+
"sources_to_targets": [[MatrixDistance.from_dict(_item) for _item in _items] for _items in obj.get("sources_to_targets")] if obj.get("sources_to_targets") is not None else None,
|
116
116
|
"warnings": [Warning.from_dict(_item) for _item in obj.get("warnings")] if obj.get("warnings") is not None else None,
|
117
117
|
"units": obj.get("units")
|
118
118
|
})
|
@@ -24,7 +24,7 @@ from aenum import Enum, no_arg
|
|
24
24
|
|
25
25
|
class PeliasLayer(str, Enum):
|
26
26
|
"""
|
27
|
-
Our database is organized into several layers (in the GIS sense of the term) as follows: - `venue`: Points of interest, businesses, and things with walls - `address`: Places with a street address - `street`: Streets, roads, highways - `county`: Places that issue passports, nations, nation-states - `macroregion`: A related group of regions (mostly in Europe) - `region`: The first administrative division within a country (usually states and provinces) - `macrocounty`: A related group of counties (mostly in Europe) - `county`: Official governmental areas; usually bigger than a locality, but almost always smaller than a region - `locality`: Towns, hamlets, cities, etc. - `localadmin`: Local administrative boundaries - `borough`: Local administrative boundaries within cities (not widely used, but present in places such as NYC and Mexico City) - `neighbourhood`: Social communities and neighborhoods (note the British spelling in the API!) - `postalcode`: Postal codes used by mail services (note: not used for reverse geocoding) - `coarse`: An alias for simultaneously using all administrative layers (everything except `venue` and `address`)
|
27
|
+
Our database is organized into several layers (in the GIS sense of the term) as follows: - `venue`: Points of interest, businesses, and things with walls - `address`: Places with a street address - `street`: Streets, roads, highways - `county`: Places that issue passports, nations, nation-states - `macroregion`: A related group of regions (mostly in Europe) - `region`: The first administrative division within a country (usually states and provinces) - `macrocounty`: A related group of counties (mostly in Europe) - `county`: Official governmental areas; usually bigger than a locality, but almost always smaller than a region - `locality`: Towns, hamlets, cities, etc. - `localadmin`: Local administrative boundaries - `borough`: Local administrative boundaries within cities (not widely used, but present in places such as NYC and Mexico City) - `neighbourhood`: Social communities and neighborhoods (note the British spelling in the API!) - `postalcode`: Postal codes used by mail services (note: not used for reverse geocoding) - `coarse`: An alias for simultaneously using all administrative layers (everything except `venue` and `address`) - `marinearea`: Places with fishes and boats. - `ocean`: A really big marine area.
|
28
28
|
"""
|
29
29
|
|
30
30
|
"""
|
@@ -44,6 +44,13 @@ class PeliasLayer(str, Enum):
|
|
44
44
|
NEIGHBOURHOOD = 'neighbourhood'
|
45
45
|
POSTALCODE = 'postalcode'
|
46
46
|
COARSE = 'coarse'
|
47
|
+
DEPENDENCY = 'dependency'
|
48
|
+
MACROHOOD = 'macrohood'
|
49
|
+
MARINEAREA = 'marinearea'
|
50
|
+
DISPUTED = 'disputed'
|
51
|
+
EMPIRE = 'empire'
|
52
|
+
CONTINENT = 'continent'
|
53
|
+
OCEAN = 'ocean'
|
47
54
|
|
48
55
|
@classmethod
|
49
56
|
def from_json(cls, json_str: str) -> PeliasLayer:
|
@@ -0,0 +1,80 @@
|
|
1
|
+
Metadata-Version: 2.1
|
2
|
+
Name: stadiamaps
|
3
|
+
Version: 0.5.0
|
4
|
+
Summary: Stadia Maps Geospatial APIs
|
5
|
+
Home-page: https://docs.stadiamaps.com/
|
6
|
+
Author: Stadia Maps Support
|
7
|
+
Author-email: support@stadiamaps.com
|
8
|
+
Keywords: OpenAPI,OpenAPI-Generator,Stadia Maps Geospatial APIs
|
9
|
+
Description-Content-Type: text/markdown
|
10
|
+
License-File: LICENSE.txt
|
11
|
+
|
12
|
+
|
13
|
+
# Stadia Maps Python API Client
|
14
|
+
|
15
|
+
The Stadia Maps Geospatial APIs provide you with the data you need to build awesome applications.
|
16
|
+
|
17
|
+
For more information about the API, please visit [https://docs.stadiamaps.com](https://docs.stadiamaps.com)
|
18
|
+
|
19
|
+
## Installation & Usage
|
20
|
+
### pip install
|
21
|
+
|
22
|
+
```shell
|
23
|
+
pip install stadiamaps
|
24
|
+
```
|
25
|
+
|
26
|
+
### Setuptools
|
27
|
+
|
28
|
+
Install via [Setuptools](http://pypi.python.org/pypi/setuptools).
|
29
|
+
|
30
|
+
```shell
|
31
|
+
python setup.py install --user
|
32
|
+
```
|
33
|
+
(or `sudo python setup.py install` to install the package for all users)
|
34
|
+
|
35
|
+
### Tests
|
36
|
+
|
37
|
+
Execute `pytest` to run the tests. These are run automatically via CI.
|
38
|
+
|
39
|
+
## Getting Started
|
40
|
+
|
41
|
+
Please follow the [installation procedure](#installation--usage) and then run the following:
|
42
|
+
|
43
|
+
```python
|
44
|
+
import os
|
45
|
+
import stadiamaps
|
46
|
+
from stadiamaps.rest import ApiException
|
47
|
+
from pprint import pprint
|
48
|
+
|
49
|
+
# Defining the host is optional and defaults to https://api.stadiamaps.com
|
50
|
+
# You can also use our EU endpoint to keep traffic within the EU by setting
|
51
|
+
# host to https://api-eu.stadiamaps.com.
|
52
|
+
# See configuration.py for a list of all supported configuration parameters.
|
53
|
+
configuration = stadiamaps.Configuration()
|
54
|
+
|
55
|
+
# The client must configure the authentication and authorization parameters
|
56
|
+
# in accordance with the API server security policy.
|
57
|
+
# Examples for each auth method are provided below, use the example that
|
58
|
+
# satisfies your auth use case.
|
59
|
+
|
60
|
+
# Configure API key authorization. This example assumes it is injected via an environment
|
61
|
+
# variable, but you can provide it in other ways as well.
|
62
|
+
configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"]
|
63
|
+
|
64
|
+
# Enter a context with an instance of the API client
|
65
|
+
with stadiamaps.ApiClient(configuration) as api_client:
|
66
|
+
# Create an instance of the API class
|
67
|
+
api_instance = stadiamaps.GeocodingApi(api_client)
|
68
|
+
text = 'Põhja pst 27a' # str | The place name (address, venue name, etc.) to search for.
|
69
|
+
|
70
|
+
try:
|
71
|
+
# Search and geocode quickly based on partial input.
|
72
|
+
api_response = api_instance.autocomplete(text)
|
73
|
+
print("The response of GeocodingApi->autocomplete:
|
74
|
+
")
|
75
|
+
pprint(api_response)
|
76
|
+
except ApiException as e:
|
77
|
+
print("Exception when calling GeocodingApi->autocomplete: %s
|
78
|
+
" % e)
|
79
|
+
```
|
80
|
+
|
@@ -147,7 +147,6 @@ test/test_distance_unit.py
|
|
147
147
|
test/test_edge_sign.py
|
148
148
|
test/test_edge_use.py
|
149
149
|
test/test_end_node.py
|
150
|
-
test/test_gecoding_integration.py
|
151
150
|
test/test_geo_attributes.py
|
152
151
|
test/test_geo_json_geometry.py
|
153
152
|
test/test_geo_json_geometry_base.py
|
@@ -240,4 +239,9 @@ test/test_truck_costing_options_all_of.py
|
|
240
239
|
test/test_tz_response.py
|
241
240
|
test/test_valhalla_languages.py
|
242
241
|
test/test_valhalla_long_units.py
|
243
|
-
test/test_warning.py
|
242
|
+
test/test_warning.py
|
243
|
+
test/integration/__init__.py
|
244
|
+
test/integration/test_eu_endpoint.py
|
245
|
+
test/integration/test_gecoding.py
|
246
|
+
test/integration/test_geospatial.py
|
247
|
+
test/integration/test_routing.py
|
File without changes
|
@@ -0,0 +1,21 @@
|
|
1
|
+
import os
|
2
|
+
import unittest
|
3
|
+
|
4
|
+
import stadiamaps
|
5
|
+
|
6
|
+
|
7
|
+
class TestEUEndpoint(unittest.TestCase):
|
8
|
+
def setUp(self):
|
9
|
+
self.configuration = stadiamaps.Configuration(host="https://api-eu.stadiamaps.com")
|
10
|
+
self.configuration.api_key['ApiKeyAuth'] = os.environ["STADIA_API_KEY"]
|
11
|
+
|
12
|
+
def tearDown(self):
|
13
|
+
pass
|
14
|
+
|
15
|
+
def testAutocomplete(self):
|
16
|
+
with stadiamaps.ApiClient(self.configuration) as api_client:
|
17
|
+
api_instance = stadiamaps.GeocodingApi(api_client)
|
18
|
+
|
19
|
+
res = api_instance.autocomplete("Põhja pst 27a")
|
20
|
+
self.assertEqual("Estonia", res.features[0].properties.country)
|
21
|
+
self.assertEqual("address", res.features[0].properties.layer)
|
@@ -0,0 +1,64 @@
|
|
1
|
+
import os
|
2
|
+
import unittest
|
3
|
+
|
4
|
+
import stadiamaps
|
5
|
+
|
6
|
+
address = "Põhja pst 27a"
|
7
|
+
|
8
|
+
|
9
|
+
class TestGeocoding(unittest.TestCase):
|
10
|
+
def setUp(self):
|
11
|
+
self.configuration = stadiamaps.Configuration()
|
12
|
+
self.configuration.api_key['ApiKeyAuth'] = os.environ["STADIA_API_KEY"]
|
13
|
+
|
14
|
+
def tearDown(self):
|
15
|
+
pass
|
16
|
+
|
17
|
+
def testAutocomplete(self):
|
18
|
+
with stadiamaps.ApiClient(self.configuration) as api_client:
|
19
|
+
api_instance = stadiamaps.GeocodingApi(api_client)
|
20
|
+
|
21
|
+
res = api_instance.autocomplete(address)
|
22
|
+
self.assertEqual("Estonia", res.features[0].properties.country)
|
23
|
+
self.assertEqual("address", res.features[0].properties.layer)
|
24
|
+
|
25
|
+
def testSearch(self):
|
26
|
+
with stadiamaps.ApiClient(self.configuration) as api_client:
|
27
|
+
api_instance = stadiamaps.GeocodingApi(api_client)
|
28
|
+
|
29
|
+
res = api_instance.search(address)
|
30
|
+
self.assertEqual("Estonia", res.features[0].properties.country)
|
31
|
+
self.assertEqual("address", res.features[0].properties.layer)
|
32
|
+
|
33
|
+
def testStructuredSearch(self):
|
34
|
+
with stadiamaps.ApiClient(self.configuration) as api_client:
|
35
|
+
api_instance = stadiamaps.GeocodingApi(api_client)
|
36
|
+
|
37
|
+
res = api_instance.search_structured(address, country="Estonia")
|
38
|
+
self.assertEqual("Estonia", res.features[0].properties.country)
|
39
|
+
self.assertEqual("address", res.features[0].properties.layer)
|
40
|
+
|
41
|
+
def testReverse(self):
|
42
|
+
with stadiamaps.ApiClient(self.configuration) as api_client:
|
43
|
+
api_instance = stadiamaps.GeocodingApi(api_client)
|
44
|
+
|
45
|
+
res = api_instance.reverse(59.444351, 24.750645)
|
46
|
+
self.assertEqual("Estonia", res.features[0].properties.country)
|
47
|
+
self.assertEqual("address", res.features[0].properties.layer)
|
48
|
+
|
49
|
+
def testReverseUncommonLayer(self):
|
50
|
+
with stadiamaps.ApiClient(self.configuration) as api_client:
|
51
|
+
api_instance = stadiamaps.GeocodingApi(api_client)
|
52
|
+
|
53
|
+
# Middle of the Gulf of Oman
|
54
|
+
res = api_instance.reverse(24.750645, 59.444351)
|
55
|
+
self.assertEqual("marinearea", res.features[0].properties.layer)
|
56
|
+
|
57
|
+
def testPlace(self):
|
58
|
+
with stadiamaps.ApiClient(self.configuration) as api_client:
|
59
|
+
api_instance = stadiamaps.GeocodingApi(api_client)
|
60
|
+
|
61
|
+
res = api_instance.place(["openstreetmap:address:way/109867749"])
|
62
|
+
self.assertEqual(1, len(res.features))
|
63
|
+
self.assertEqual("Estonia", res.features[0].properties.country)
|
64
|
+
self.assertEqual("address", res.features[0].properties.layer)
|
@@ -0,0 +1,31 @@
|
|
1
|
+
import os
|
2
|
+
import unittest
|
3
|
+
|
4
|
+
import stadiamaps
|
5
|
+
|
6
|
+
|
7
|
+
class TestGeospatial(unittest.TestCase):
|
8
|
+
def setUp(self):
|
9
|
+
self.configuration = stadiamaps.Configuration()
|
10
|
+
self.configuration.api_key['ApiKeyAuth'] = os.environ["STADIA_API_KEY"]
|
11
|
+
|
12
|
+
def tearDown(self):
|
13
|
+
pass
|
14
|
+
|
15
|
+
def testTZLookup(self):
|
16
|
+
with stadiamaps.ApiClient(self.configuration) as api_client:
|
17
|
+
api_instance = stadiamaps.GeospatialApi(api_client)
|
18
|
+
|
19
|
+
res = api_instance.tz_lookup(37.56, 126.99)
|
20
|
+
self.assertEqual("Asia/Seoul", res.tz_id)
|
21
|
+
|
22
|
+
def testElevation(self):
|
23
|
+
with stadiamaps.ApiClient(self.configuration) as api_client:
|
24
|
+
api_instance = stadiamaps.GeospatialApi(api_client)
|
25
|
+
|
26
|
+
req = stadiamaps.HeightRequest(id="Seoul", shape=[stadiamaps.Coordinate(lat=37.56, lon=126.99)])
|
27
|
+
res = api_instance.elevation(req)
|
28
|
+
self.assertEqual(req.id, res.id)
|
29
|
+
self.assertGreaterEqual(len(res.height), 1)
|
30
|
+
self.assertGreaterEqual(res.height[0], 1)
|
31
|
+
self.assertEqual(res.shape, req.shape)
|