stadiamaps 0.4.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.4.0 → stadiamaps-0.5.0}/PKG-INFO +1 -1
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/README.md +2 -2
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/pyproject.toml +1 -1
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/setup.py +1 -1
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/stadiamaps/__init__.py +1 -1
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/stadiamaps/api_client.py +1 -1
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/stadiamaps/configuration.py +1 -1
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/stadiamaps/models/isochrone_feature.py +2 -2
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/stadiamaps/models/matrix_response.py +3 -3
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/stadiamaps/models/pelias_layer.py +8 -1
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/stadiamaps.egg-info/PKG-INFO +1 -1
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/stadiamaps.egg-info/SOURCES.txt +4 -1
- 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.4.0/test/integration/test_gecoding.py +0 -23
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/LICENSE.txt +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/setup.cfg +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/stadiamaps/api/__init__.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/stadiamaps/api/geocoding_api.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/stadiamaps/api/geospatial_api.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/stadiamaps/api/routing_api.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/stadiamaps/api_response.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/stadiamaps/exceptions.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/stadiamaps/models/__init__.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/stadiamaps/models/access.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/stadiamaps/models/admin_region.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/stadiamaps/models/administrative.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/stadiamaps/models/auto_costing_options.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/stadiamaps/models/auto_costing_options_all_of.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/stadiamaps/models/base_costing_options.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/stadiamaps/models/base_trace_request.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/stadiamaps/models/bicycle_costing_options.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/stadiamaps/models/bicycle_costing_options_all_of.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/stadiamaps/models/bike_network.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/stadiamaps/models/contour.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/stadiamaps/models/coordinate.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/stadiamaps/models/costing_model.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/stadiamaps/models/costing_options.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/stadiamaps/models/directions_options.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/stadiamaps/models/distance_unit.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/stadiamaps/models/edge_sign.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/stadiamaps/models/edge_use.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/stadiamaps/models/end_node.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/stadiamaps/models/geo_attributes.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/stadiamaps/models/geo_json_geometry.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/stadiamaps/models/geo_json_geometry_base.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/stadiamaps/models/geo_json_line_string.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/stadiamaps/models/geo_json_line_string_all_of.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/stadiamaps/models/geo_json_point.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/stadiamaps/models/geo_json_point_all_of.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/stadiamaps/models/geo_json_polygon.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/stadiamaps/models/geo_json_polygon_all_of.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/stadiamaps/models/geocoding_object.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/stadiamaps/models/height_request.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/stadiamaps/models/height_response.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/stadiamaps/models/highway_classification.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/stadiamaps/models/intersecting_edge.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/stadiamaps/models/isochrone_costing_model.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/stadiamaps/models/isochrone_properties.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/stadiamaps/models/isochrone_request.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/stadiamaps/models/isochrone_response.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/stadiamaps/models/locate_detailed_edge.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/stadiamaps/models/locate_edge.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/stadiamaps/models/locate_edge_info.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/stadiamaps/models/locate_node.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/stadiamaps/models/locate_node_all_of.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/stadiamaps/models/locate_object.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/stadiamaps/models/maneuver_sign.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/stadiamaps/models/maneuver_sign_element.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/stadiamaps/models/map_match_costing_model.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/stadiamaps/models/map_match_request.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/stadiamaps/models/map_match_request_all_of.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/stadiamaps/models/map_match_route_response.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/stadiamaps/models/map_match_route_response_all_of.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/stadiamaps/models/map_match_trace_options.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/stadiamaps/models/map_match_waypoint.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/stadiamaps/models/map_match_waypoint_all_of.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/stadiamaps/models/matched_point.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/stadiamaps/models/matrix_costing_model.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/stadiamaps/models/matrix_distance.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/stadiamaps/models/matrix_request.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/stadiamaps/models/motor_scooter_costing_options.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/stadiamaps/models/motor_scooter_costing_options_all_of.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/stadiamaps/models/motorcycle_costing_options.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/stadiamaps/models/motorcycle_costing_options_all_of.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/stadiamaps/models/nearest_roads_request.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/stadiamaps/models/node_id.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/stadiamaps/models/node_type.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/stadiamaps/models/optimized_route_request.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/stadiamaps/models/pedestrian_costing_options.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/stadiamaps/models/pelias_geo_json_feature.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/stadiamaps/models/pelias_geo_json_properties.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/stadiamaps/models/pelias_geo_json_properties_addendum.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/stadiamaps/models/pelias_geo_json_properties_addendum_osm.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/stadiamaps/models/pelias_response.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/stadiamaps/models/pelias_response_geocoding.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/stadiamaps/models/pelias_source.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/stadiamaps/models/restrictions.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/stadiamaps/models/road_class.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/stadiamaps/models/route_leg.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/stadiamaps/models/route_maneuver.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/stadiamaps/models/route_request.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/stadiamaps/models/route_response.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/stadiamaps/models/route_response_trip.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/stadiamaps/models/route_summary.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/stadiamaps/models/routing_response_waypoint.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/stadiamaps/models/routing_response_waypoint_all_of.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/stadiamaps/models/routing_waypoint.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/stadiamaps/models/routing_waypoint_all_of.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/stadiamaps/models/routing_waypoint_all_of_search_filter.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/stadiamaps/models/simple_routing_waypoint.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/stadiamaps/models/simple_routing_waypoint_all_of.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/stadiamaps/models/speeds.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/stadiamaps/models/trace_attribute_filter_options.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/stadiamaps/models/trace_attribute_key.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/stadiamaps/models/trace_attributes_base_response.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/stadiamaps/models/trace_attributes_request.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/stadiamaps/models/trace_attributes_request_all_of.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/stadiamaps/models/trace_attributes_request_all_of_filters.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/stadiamaps/models/trace_attributes_response.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/stadiamaps/models/trace_attributes_response_all_of.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/stadiamaps/models/trace_edge.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/stadiamaps/models/travel_mode.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/stadiamaps/models/traversability.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/stadiamaps/models/truck_costing_options.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/stadiamaps/models/truck_costing_options_all_of.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/stadiamaps/models/tz_response.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/stadiamaps/models/valhalla_languages.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/stadiamaps/models/valhalla_long_units.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/stadiamaps/models/warning.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/stadiamaps/rest.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/stadiamaps.egg-info/dependency_links.txt +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/stadiamaps.egg-info/requires.txt +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/stadiamaps.egg-info/top_level.txt +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/test/integration/__init__.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/test/test_access.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/test/test_admin_region.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/test/test_administrative.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/test/test_auto_costing_options.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/test/test_auto_costing_options_all_of.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/test/test_base_costing_options.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/test/test_base_trace_request.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/test/test_bicycle_costing_options.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/test/test_bicycle_costing_options_all_of.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/test/test_bike_network.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/test/test_contour.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/test/test_coordinate.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/test/test_costing_model.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/test/test_costing_options.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/test/test_directions_options.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/test/test_distance_unit.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/test/test_edge_sign.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/test/test_edge_use.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/test/test_end_node.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/test/test_geo_attributes.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/test/test_geo_json_geometry.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/test/test_geo_json_geometry_base.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/test/test_geo_json_line_string.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/test/test_geo_json_line_string_all_of.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/test/test_geo_json_point.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/test/test_geo_json_point_all_of.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/test/test_geo_json_polygon.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/test/test_geo_json_polygon_all_of.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/test/test_geocoding_api.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/test/test_geocoding_object.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/test/test_geospatial_api.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/test/test_height_request.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/test/test_height_response.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/test/test_highway_classification.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/test/test_intersecting_edge.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/test/test_isochrone_costing_model.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/test/test_isochrone_feature.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/test/test_isochrone_properties.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/test/test_isochrone_request.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/test/test_isochrone_response.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/test/test_locate_detailed_edge.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/test/test_locate_edge.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/test/test_locate_edge_info.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/test/test_locate_node.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/test/test_locate_node_all_of.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/test/test_locate_object.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/test/test_maneuver_sign.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/test/test_maneuver_sign_element.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/test/test_map_match_costing_model.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/test/test_map_match_request.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/test/test_map_match_request_all_of.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/test/test_map_match_route_response.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/test/test_map_match_route_response_all_of.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/test/test_map_match_trace_options.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/test/test_map_match_waypoint.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/test/test_map_match_waypoint_all_of.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/test/test_matched_point.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/test/test_matrix_costing_model.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/test/test_matrix_distance.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/test/test_matrix_request.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/test/test_matrix_response.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/test/test_motor_scooter_costing_options.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/test/test_motor_scooter_costing_options_all_of.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/test/test_motorcycle_costing_options.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/test/test_motorcycle_costing_options_all_of.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/test/test_nearest_roads_request.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/test/test_node_id.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/test/test_node_type.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/test/test_optimized_route_request.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/test/test_pedestrian_costing_options.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/test/test_pelias_geo_json_feature.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/test/test_pelias_geo_json_properties.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/test/test_pelias_geo_json_properties_addendum.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/test/test_pelias_geo_json_properties_addendum_osm.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/test/test_pelias_layer.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/test/test_pelias_response.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/test/test_pelias_response_geocoding.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/test/test_pelias_source.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/test/test_restrictions.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/test/test_road_class.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/test/test_route_leg.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/test/test_route_maneuver.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/test/test_route_request.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/test/test_route_response.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/test/test_route_response_trip.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/test/test_route_summary.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/test/test_routing_api.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/test/test_routing_response_waypoint.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/test/test_routing_response_waypoint_all_of.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/test/test_routing_waypoint.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/test/test_routing_waypoint_all_of.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/test/test_routing_waypoint_all_of_search_filter.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/test/test_simple_routing_waypoint.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/test/test_simple_routing_waypoint_all_of.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/test/test_speeds.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/test/test_trace_attribute_filter_options.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/test/test_trace_attribute_key.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/test/test_trace_attributes_base_response.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/test/test_trace_attributes_request.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/test/test_trace_attributes_request_all_of.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/test/test_trace_attributes_request_all_of_filters.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/test/test_trace_attributes_response.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/test/test_trace_attributes_response_all_of.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/test/test_trace_edge.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/test/test_travel_mode.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/test/test_traversability.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/test/test_truck_costing_options.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/test/test_truck_costing_options_all_of.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/test/test_tz_response.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/test/test_valhalla_languages.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/test/test_valhalla_long_units.py +0 -0
- {stadiamaps-0.4.0 → stadiamaps-0.5.0}/test/test_warning.py +0 -0
@@ -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
|
|
@@ -22,7 +22,7 @@ from setuptools import setup, find_packages # noqa: H301
|
|
22
22
|
# prerequisite: setuptools
|
23
23
|
# http://pypi.python.org/pypi/setuptools
|
24
24
|
NAME = "stadiamaps"
|
25
|
-
VERSION = "0.
|
25
|
+
VERSION = "0.5.0"
|
26
26
|
PYTHON_REQUIRES = ">=3.7"
|
27
27
|
REQUIRES = [
|
28
28
|
"urllib3 >= 1.25.3",
|
@@ -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:
|
@@ -241,4 +241,7 @@ test/test_valhalla_languages.py
|
|
241
241
|
test/test_valhalla_long_units.py
|
242
242
|
test/test_warning.py
|
243
243
|
test/integration/__init__.py
|
244
|
-
test/integration/
|
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
|
@@ -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)
|
@@ -0,0 +1,146 @@
|
|
1
|
+
import os
|
2
|
+
import unittest
|
3
|
+
|
4
|
+
import stadiamaps
|
5
|
+
|
6
|
+
location_a = {"lat": 40.042072, "lon": -76.306572}
|
7
|
+
location_b = {"lat": 39.992115, "lon": -76.781559}
|
8
|
+
location_c = {"lat": 39.984519, "lon": -76.6956}
|
9
|
+
|
10
|
+
|
11
|
+
class TestRouting(unittest.TestCase):
|
12
|
+
def setUp(self):
|
13
|
+
self.configuration = stadiamaps.Configuration()
|
14
|
+
self.configuration.api_key['ApiKeyAuth'] = os.environ["STADIA_API_KEY"]
|
15
|
+
|
16
|
+
def tearDown(self):
|
17
|
+
pass
|
18
|
+
|
19
|
+
def testRoute(self):
|
20
|
+
with stadiamaps.ApiClient(self.configuration) as api_client:
|
21
|
+
api_instance = stadiamaps.RoutingApi(api_client)
|
22
|
+
|
23
|
+
req = stadiamaps.RouteRequest(
|
24
|
+
id="route",
|
25
|
+
locations=[
|
26
|
+
stadiamaps.RoutingWaypoint.from_dict(location_a),
|
27
|
+
stadiamaps.RoutingWaypoint.from_dict(location_b)
|
28
|
+
],
|
29
|
+
costing=stadiamaps.CostingModel.AUTO,
|
30
|
+
costing_options=stadiamaps.CostingOptions(auto=stadiamaps.AutoCostingOptions(use_tolls=1)),
|
31
|
+
directions_options=stadiamaps.DirectionsOptions(units=stadiamaps.DistanceUnit.MI)
|
32
|
+
)
|
33
|
+
|
34
|
+
res = api_instance.route(req)
|
35
|
+
self.assertEqual(req.id, res.id)
|
36
|
+
self.assertEqual(0, res.trip.status)
|
37
|
+
self.assertEqual("miles", res.trip.units)
|
38
|
+
self.assertEqual(len(res.trip.legs), 1)
|
39
|
+
|
40
|
+
def testOptimizedRoute(self):
|
41
|
+
with stadiamaps.ApiClient(self.configuration) as api_client:
|
42
|
+
api_instance = stadiamaps.RoutingApi(api_client)
|
43
|
+
|
44
|
+
req = stadiamaps.OptimizedRouteRequest(
|
45
|
+
id="optimized_route",
|
46
|
+
locations=[
|
47
|
+
stadiamaps.Coordinate.from_dict(location_a),
|
48
|
+
stadiamaps.Coordinate.from_dict(location_b),
|
49
|
+
stadiamaps.Coordinate.from_dict(location_c)
|
50
|
+
],
|
51
|
+
costing=stadiamaps.CostingModel.AUTO,
|
52
|
+
costing_options=stadiamaps.CostingOptions(auto=stadiamaps.AutoCostingOptions(use_tolls=1)),
|
53
|
+
directions_options=stadiamaps.DirectionsOptions(units=stadiamaps.DistanceUnit.MI)
|
54
|
+
)
|
55
|
+
|
56
|
+
res = api_instance.optimized_route(req)
|
57
|
+
self.assertEqual(req.id, res.id)
|
58
|
+
self.assertEqual(0, res.trip.status)
|
59
|
+
self.assertEqual("miles", res.trip.units)
|
60
|
+
self.assertGreater(len(res.trip.legs), 1)
|
61
|
+
|
62
|
+
def testTimeDistanceMatrix(self):
|
63
|
+
with stadiamaps.ApiClient(self.configuration) as api_client:
|
64
|
+
api_instance = stadiamaps.RoutingApi(api_client)
|
65
|
+
|
66
|
+
req = stadiamaps.MatrixRequest(
|
67
|
+
id="matrix",
|
68
|
+
sources=[
|
69
|
+
stadiamaps.Coordinate.from_dict(location_a),
|
70
|
+
],
|
71
|
+
targets=[
|
72
|
+
stadiamaps.Coordinate.from_dict(location_b),
|
73
|
+
stadiamaps.Coordinate.from_dict(location_c),
|
74
|
+
],
|
75
|
+
costing=stadiamaps.MatrixCostingModel.PEDESTRIAN,
|
76
|
+
)
|
77
|
+
|
78
|
+
res = api_instance.time_distance_matrix(req)
|
79
|
+
self.assertEqual(req.id, res.id)
|
80
|
+
self.assertEqual([req.sources], res.sources)
|
81
|
+
self.assertEqual([req.targets], res.targets)
|
82
|
+
self.assertGreaterEqual(len(res.sources_to_targets), 1)
|
83
|
+
self.assertEqual("kilometers", res.units)
|
84
|
+
|
85
|
+
def testNearestRoads(self):
|
86
|
+
with stadiamaps.ApiClient(self.configuration) as api_client:
|
87
|
+
api_instance = stadiamaps.RoutingApi(api_client)
|
88
|
+
|
89
|
+
req = stadiamaps.NearestRoadsRequest(
|
90
|
+
locations=[location_a]
|
91
|
+
)
|
92
|
+
res = api_instance.nearest_roads(req)
|
93
|
+
self.assertGreaterEqual(len(res), 1)
|
94
|
+
self.assertGreaterEqual(len(res[0].edges), 1)
|
95
|
+
|
96
|
+
def testIsochrone(self):
|
97
|
+
with stadiamaps.ApiClient(self.configuration) as api_client:
|
98
|
+
api_instance = stadiamaps.RoutingApi(api_client)
|
99
|
+
|
100
|
+
req = stadiamaps.IsochroneRequest(
|
101
|
+
id="isochrone",
|
102
|
+
locations=[location_a],
|
103
|
+
costing=stadiamaps.IsochroneCostingModel.PEDESTRIAN,
|
104
|
+
contours=[
|
105
|
+
stadiamaps.Contour(time=5, color="aabbcc")
|
106
|
+
],
|
107
|
+
polygons=True,
|
108
|
+
)
|
109
|
+
res = api_instance.isochrone(req)
|
110
|
+
self.assertEqual(req.id, res.id)
|
111
|
+
self.assertGreaterEqual(len(res.features), 1)
|
112
|
+
|
113
|
+
def testMapMatch(self):
|
114
|
+
with stadiamaps.ApiClient(self.configuration) as api_client:
|
115
|
+
api_instance = stadiamaps.RoutingApi(api_client)
|
116
|
+
|
117
|
+
req = stadiamaps.MapMatchRequest(
|
118
|
+
id="map_match",
|
119
|
+
encoded_polyline="_grbgAh~{nhF?lBAzBFvBHxBEtBKdB?fB@dBZdBb@hBh@jBb@x@\\|@x@pB\\x@v@hBl@nBPbCXtBn@|@z@ZbAEbAa@~@q@z@QhA]pAUpAVhAPlAWtASpAAdA[dASdAQhAIlARjANnAZhAf@n@`A?lB^nCRbA\\xB`@vBf@tBTbCFbARzBZvBThBRnBNrBP`CHbCF`CNdCb@vBX`ARlAJfADhA@dAFdAP`AR`Ah@hBd@bBl@rBV|B?vB]tBCvBBhAF`CFnBXtAVxAVpAVtAb@|AZ`Bd@~BJfA@fAHdADhADhABjAGzAInAAjAB|BNbCR|BTjBZtB`@lBh@lB\\|Bl@rBXtBN`Al@g@t@?nAA~AKvACvAAlAMdAU`Ac@hAShAI`AJ`AIdAi@bAu@|@k@p@]p@a@bAc@z@g@~@Ot@Bz@f@X`BFtBXdCLbAf@zBh@fBb@xAb@nATjAKjAW`BI|AEpAHjAPdAAfAGdAFjAv@p@XlAVnA?~A?jAInAPtAVxAXnAf@tBDpBJpBXhBJfBDpAZ|Ax@pAz@h@~@lA|@bAnAd@hAj@tAR~AKxAc@xAShA]hAIdAAjA]~A[v@BhB?dBSv@Ct@CvAI~@Oz@Pv@dAz@lAj@~A^`B^|AXvAVpAXdBh@~Ap@fCh@hB\\zBN`Aj@xBFdA@jALbAPbAJdAHdAJbAHbAHfAJhALbA\\lBTvBAdC@bC@jCKjASbC?`CM`CDpB\\xAj@tB\\fA\\bAVfAJdAJbAXz@L|BO`AOdCDdA@~B\\z@l@v@l@v@l@r@j@t@b@x@b@r@z@jBVfCJdAJdANbCPfCF|BRhBS~BS`AYbAe@~BQdA",
|
120
|
+
costing=stadiamaps.MapMatchCostingModel.PEDESTRIAN,
|
121
|
+
directions_options=stadiamaps.DirectionsOptions(units=stadiamaps.DistanceUnit.MI),
|
122
|
+
linear_references=True,
|
123
|
+
)
|
124
|
+
res = api_instance.map_match(req)
|
125
|
+
self.assertEqual(req.id, res.id)
|
126
|
+
self.assertEqual(0, res.trip.status)
|
127
|
+
self.assertEqual("miles", res.trip.units)
|
128
|
+
self.assertEqual(len(res.trip.legs), 1)
|
129
|
+
|
130
|
+
def testTraceAttributes(self):
|
131
|
+
with stadiamaps.ApiClient(self.configuration) as api_client:
|
132
|
+
api_instance = stadiamaps.RoutingApi(api_client)
|
133
|
+
|
134
|
+
req = stadiamaps.TraceAttributesRequest(
|
135
|
+
id="trace",
|
136
|
+
encoded_polyline="_grbgAh~{nhF?lBAzBFvBHxBEtBKdB?fB@dBZdBb@hBh@jBb@x@\\|@x@pB\\x@v@hBl@nBPbCXtBn@|@z@ZbAEbAa@~@q@z@QhA]pAUpAVhAPlAWtASpAAdA[dASdAQhAIlARjANnAZhAf@n@`A?lB^nCRbA\\xB`@vBf@tBTbCFbARzBZvBThBRnBNrBP`CHbCF`CNdCb@vBX`ARlAJfADhA@dAFdAP`AR`Ah@hBd@bBl@rBV|B?vB]tBCvBBhAF`CFnBXtAVxAVpAVtAb@|AZ`Bd@~BJfA@fAHdADhADhABjAGzAInAAjAB|BNbCR|BTjBZtB`@lBh@lB\\|Bl@rBXtBN`Al@g@t@?nAA~AKvACvAAlAMdAU`Ac@hAShAI`AJ`AIdAi@bAu@|@k@p@]p@a@bAc@z@g@~@Ot@Bz@f@X`BFtBXdCLbAf@zBh@fBb@xAb@nATjAKjAW`BI|AEpAHjAPdAAfAGdAFjAv@p@XlAVnA?~A?jAInAPtAVxAXnAf@tBDpBJpBXhBJfBDpAZ|Ax@pAz@h@~@lA|@bAnAd@hAj@tAR~AKxAc@xAShA]hAIdAAjA]~A[v@BhB?dBSv@Ct@CvAI~@Oz@Pv@dAz@lAj@~A^`B^|AXvAVpAXdBh@~Ap@fCh@hB\\zBN`Aj@xBFdA@jALbAPbAJdAHdAJbAHbAHfAJhALbA\\lBTvBAdC@bC@jCKjASbC?`CM`CDpB\\xAj@tB\\fA\\bAVfAJdAJbAXz@L|BO`AOdCDdA@~B\\z@l@v@l@v@l@r@j@t@b@x@b@r@z@jBVfCJdAJdANbCPfCF|BRhBS~BS`AYbAe@~BQdA",
|
137
|
+
costing=stadiamaps.MapMatchCostingModel.PEDESTRIAN,
|
138
|
+
directions_options=stadiamaps.DirectionsOptions(units=stadiamaps.DistanceUnit.MI),
|
139
|
+
)
|
140
|
+
res = api_instance.trace_attributes(req)
|
141
|
+
self.assertEqual(req.id, res.id)
|
142
|
+
self.assertEqual("miles", res.units)
|
143
|
+
self.assertGreaterEqual(len(res.admins), 1)
|
144
|
+
self.assertGreater(len(res.edges), 1)
|
145
|
+
self.assertGreater(len(res.matched_points), 1)
|
146
|
+
self.assertGreater(len(res.shape), 1)
|
@@ -1,23 +0,0 @@
|
|
1
|
-
import os
|
2
|
-
import unittest
|
3
|
-
|
4
|
-
import stadiamaps
|
5
|
-
|
6
|
-
|
7
|
-
class TestGeocoding(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 testAutocomplete(self):
|
16
|
-
with stadiamaps.ApiClient(self.configuration) as api_client:
|
17
|
-
# Create an instance of the API class
|
18
|
-
api_instance = stadiamaps.GeocodingApi(api_client)
|
19
|
-
text = 'Põhja pst 27a' # str | The place name (address, venue name, etc.) to search for.
|
20
|
-
|
21
|
-
# Search and geocode quickly based on partial input.
|
22
|
-
api_response = api_instance.autocomplete(text)
|
23
|
-
self.assertEqual("Estonia", api_response.features[0].properties.country)
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{stadiamaps-0.4.0 → stadiamaps-0.5.0}/stadiamaps/models/motor_scooter_costing_options_all_of.py
RENAMED
File without changes
|
File without changes
|
{stadiamaps-0.4.0 → stadiamaps-0.5.0}/stadiamaps/models/motorcycle_costing_options_all_of.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|