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.
Files changed (252) hide show
  1. stadiamaps-0.5.0/PKG-INFO +80 -0
  2. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/README.md +2 -19
  3. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/pyproject.toml +1 -1
  4. stadiamaps-0.5.0/setup.py +113 -0
  5. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/__init__.py +1 -1
  6. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/api_client.py +1 -1
  7. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/configuration.py +1 -1
  8. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/isochrone_feature.py +2 -2
  9. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/matrix_response.py +3 -3
  10. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/pelias_layer.py +8 -1
  11. stadiamaps-0.5.0/stadiamaps.egg-info/PKG-INFO +80 -0
  12. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps.egg-info/SOURCES.txt +6 -2
  13. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps.egg-info/top_level.txt +1 -0
  14. stadiamaps-0.5.0/test/integration/__init__.py +0 -0
  15. stadiamaps-0.5.0/test/integration/test_eu_endpoint.py +21 -0
  16. stadiamaps-0.5.0/test/integration/test_gecoding.py +64 -0
  17. stadiamaps-0.5.0/test/integration/test_geospatial.py +31 -0
  18. stadiamaps-0.5.0/test/integration/test_routing.py +146 -0
  19. stadiamaps-0.3.0/PKG-INFO +0 -240
  20. stadiamaps-0.3.0/setup.py +0 -53
  21. stadiamaps-0.3.0/stadiamaps.egg-info/PKG-INFO +0 -240
  22. stadiamaps-0.3.0/test/test_gecoding_integration.py +0 -23
  23. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/LICENSE.txt +0 -0
  24. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/setup.cfg +0 -0
  25. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/api/__init__.py +0 -0
  26. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/api/geocoding_api.py +0 -0
  27. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/api/geospatial_api.py +0 -0
  28. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/api/routing_api.py +0 -0
  29. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/api_response.py +0 -0
  30. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/exceptions.py +0 -0
  31. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/__init__.py +0 -0
  32. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/access.py +0 -0
  33. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/admin_region.py +0 -0
  34. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/administrative.py +0 -0
  35. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/auto_costing_options.py +0 -0
  36. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/auto_costing_options_all_of.py +0 -0
  37. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/base_costing_options.py +0 -0
  38. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/base_trace_request.py +0 -0
  39. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/bicycle_costing_options.py +0 -0
  40. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/bicycle_costing_options_all_of.py +0 -0
  41. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/bike_network.py +0 -0
  42. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/contour.py +0 -0
  43. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/coordinate.py +0 -0
  44. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/costing_model.py +0 -0
  45. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/costing_options.py +0 -0
  46. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/directions_options.py +0 -0
  47. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/distance_unit.py +0 -0
  48. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/edge_sign.py +0 -0
  49. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/edge_use.py +0 -0
  50. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/end_node.py +0 -0
  51. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/geo_attributes.py +0 -0
  52. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/geo_json_geometry.py +0 -0
  53. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/geo_json_geometry_base.py +0 -0
  54. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/geo_json_line_string.py +0 -0
  55. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/geo_json_line_string_all_of.py +0 -0
  56. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/geo_json_point.py +0 -0
  57. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/geo_json_point_all_of.py +0 -0
  58. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/geo_json_polygon.py +0 -0
  59. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/geo_json_polygon_all_of.py +0 -0
  60. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/geocoding_object.py +0 -0
  61. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/height_request.py +0 -0
  62. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/height_response.py +0 -0
  63. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/highway_classification.py +0 -0
  64. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/intersecting_edge.py +0 -0
  65. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/isochrone_costing_model.py +0 -0
  66. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/isochrone_properties.py +0 -0
  67. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/isochrone_request.py +0 -0
  68. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/isochrone_response.py +0 -0
  69. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/locate_detailed_edge.py +0 -0
  70. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/locate_edge.py +0 -0
  71. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/locate_edge_info.py +0 -0
  72. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/locate_node.py +0 -0
  73. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/locate_node_all_of.py +0 -0
  74. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/locate_object.py +0 -0
  75. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/maneuver_sign.py +0 -0
  76. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/maneuver_sign_element.py +0 -0
  77. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/map_match_costing_model.py +0 -0
  78. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/map_match_request.py +0 -0
  79. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/map_match_request_all_of.py +0 -0
  80. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/map_match_route_response.py +0 -0
  81. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/map_match_route_response_all_of.py +0 -0
  82. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/map_match_trace_options.py +0 -0
  83. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/map_match_waypoint.py +0 -0
  84. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/map_match_waypoint_all_of.py +0 -0
  85. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/matched_point.py +0 -0
  86. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/matrix_costing_model.py +0 -0
  87. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/matrix_distance.py +0 -0
  88. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/matrix_request.py +0 -0
  89. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/motor_scooter_costing_options.py +0 -0
  90. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/motor_scooter_costing_options_all_of.py +0 -0
  91. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/motorcycle_costing_options.py +0 -0
  92. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/motorcycle_costing_options_all_of.py +0 -0
  93. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/nearest_roads_request.py +0 -0
  94. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/node_id.py +0 -0
  95. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/node_type.py +0 -0
  96. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/optimized_route_request.py +0 -0
  97. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/pedestrian_costing_options.py +0 -0
  98. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/pelias_geo_json_feature.py +0 -0
  99. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/pelias_geo_json_properties.py +0 -0
  100. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/pelias_geo_json_properties_addendum.py +0 -0
  101. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/pelias_geo_json_properties_addendum_osm.py +0 -0
  102. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/pelias_response.py +0 -0
  103. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/pelias_response_geocoding.py +0 -0
  104. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/pelias_source.py +0 -0
  105. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/restrictions.py +0 -0
  106. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/road_class.py +0 -0
  107. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/route_leg.py +0 -0
  108. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/route_maneuver.py +0 -0
  109. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/route_request.py +0 -0
  110. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/route_response.py +0 -0
  111. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/route_response_trip.py +0 -0
  112. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/route_summary.py +0 -0
  113. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/routing_response_waypoint.py +0 -0
  114. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/routing_response_waypoint_all_of.py +0 -0
  115. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/routing_waypoint.py +0 -0
  116. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/routing_waypoint_all_of.py +0 -0
  117. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/routing_waypoint_all_of_search_filter.py +0 -0
  118. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/simple_routing_waypoint.py +0 -0
  119. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/simple_routing_waypoint_all_of.py +0 -0
  120. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/speeds.py +0 -0
  121. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/trace_attribute_filter_options.py +0 -0
  122. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/trace_attribute_key.py +0 -0
  123. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/trace_attributes_base_response.py +0 -0
  124. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/trace_attributes_request.py +0 -0
  125. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/trace_attributes_request_all_of.py +0 -0
  126. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/trace_attributes_request_all_of_filters.py +0 -0
  127. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/trace_attributes_response.py +0 -0
  128. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/trace_attributes_response_all_of.py +0 -0
  129. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/trace_edge.py +0 -0
  130. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/travel_mode.py +0 -0
  131. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/traversability.py +0 -0
  132. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/truck_costing_options.py +0 -0
  133. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/truck_costing_options_all_of.py +0 -0
  134. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/tz_response.py +0 -0
  135. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/valhalla_languages.py +0 -0
  136. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/valhalla_long_units.py +0 -0
  137. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/models/warning.py +0 -0
  138. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps/rest.py +0 -0
  139. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps.egg-info/dependency_links.txt +0 -0
  140. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/stadiamaps.egg-info/requires.txt +0 -0
  141. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_access.py +0 -0
  142. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_admin_region.py +0 -0
  143. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_administrative.py +0 -0
  144. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_auto_costing_options.py +0 -0
  145. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_auto_costing_options_all_of.py +0 -0
  146. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_base_costing_options.py +0 -0
  147. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_base_trace_request.py +0 -0
  148. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_bicycle_costing_options.py +0 -0
  149. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_bicycle_costing_options_all_of.py +0 -0
  150. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_bike_network.py +0 -0
  151. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_contour.py +0 -0
  152. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_coordinate.py +0 -0
  153. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_costing_model.py +0 -0
  154. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_costing_options.py +0 -0
  155. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_directions_options.py +0 -0
  156. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_distance_unit.py +0 -0
  157. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_edge_sign.py +0 -0
  158. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_edge_use.py +0 -0
  159. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_end_node.py +0 -0
  160. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_geo_attributes.py +0 -0
  161. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_geo_json_geometry.py +0 -0
  162. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_geo_json_geometry_base.py +0 -0
  163. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_geo_json_line_string.py +0 -0
  164. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_geo_json_line_string_all_of.py +0 -0
  165. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_geo_json_point.py +0 -0
  166. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_geo_json_point_all_of.py +0 -0
  167. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_geo_json_polygon.py +0 -0
  168. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_geo_json_polygon_all_of.py +0 -0
  169. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_geocoding_api.py +0 -0
  170. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_geocoding_object.py +0 -0
  171. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_geospatial_api.py +0 -0
  172. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_height_request.py +0 -0
  173. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_height_response.py +0 -0
  174. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_highway_classification.py +0 -0
  175. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_intersecting_edge.py +0 -0
  176. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_isochrone_costing_model.py +0 -0
  177. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_isochrone_feature.py +0 -0
  178. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_isochrone_properties.py +0 -0
  179. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_isochrone_request.py +0 -0
  180. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_isochrone_response.py +0 -0
  181. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_locate_detailed_edge.py +0 -0
  182. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_locate_edge.py +0 -0
  183. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_locate_edge_info.py +0 -0
  184. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_locate_node.py +0 -0
  185. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_locate_node_all_of.py +0 -0
  186. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_locate_object.py +0 -0
  187. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_maneuver_sign.py +0 -0
  188. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_maneuver_sign_element.py +0 -0
  189. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_map_match_costing_model.py +0 -0
  190. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_map_match_request.py +0 -0
  191. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_map_match_request_all_of.py +0 -0
  192. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_map_match_route_response.py +0 -0
  193. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_map_match_route_response_all_of.py +0 -0
  194. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_map_match_trace_options.py +0 -0
  195. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_map_match_waypoint.py +0 -0
  196. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_map_match_waypoint_all_of.py +0 -0
  197. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_matched_point.py +0 -0
  198. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_matrix_costing_model.py +0 -0
  199. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_matrix_distance.py +0 -0
  200. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_matrix_request.py +0 -0
  201. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_matrix_response.py +0 -0
  202. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_motor_scooter_costing_options.py +0 -0
  203. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_motor_scooter_costing_options_all_of.py +0 -0
  204. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_motorcycle_costing_options.py +0 -0
  205. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_motorcycle_costing_options_all_of.py +0 -0
  206. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_nearest_roads_request.py +0 -0
  207. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_node_id.py +0 -0
  208. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_node_type.py +0 -0
  209. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_optimized_route_request.py +0 -0
  210. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_pedestrian_costing_options.py +0 -0
  211. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_pelias_geo_json_feature.py +0 -0
  212. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_pelias_geo_json_properties.py +0 -0
  213. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_pelias_geo_json_properties_addendum.py +0 -0
  214. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_pelias_geo_json_properties_addendum_osm.py +0 -0
  215. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_pelias_layer.py +0 -0
  216. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_pelias_response.py +0 -0
  217. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_pelias_response_geocoding.py +0 -0
  218. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_pelias_source.py +0 -0
  219. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_restrictions.py +0 -0
  220. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_road_class.py +0 -0
  221. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_route_leg.py +0 -0
  222. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_route_maneuver.py +0 -0
  223. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_route_request.py +0 -0
  224. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_route_response.py +0 -0
  225. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_route_response_trip.py +0 -0
  226. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_route_summary.py +0 -0
  227. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_routing_api.py +0 -0
  228. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_routing_response_waypoint.py +0 -0
  229. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_routing_response_waypoint_all_of.py +0 -0
  230. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_routing_waypoint.py +0 -0
  231. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_routing_waypoint_all_of.py +0 -0
  232. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_routing_waypoint_all_of_search_filter.py +0 -0
  233. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_simple_routing_waypoint.py +0 -0
  234. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_simple_routing_waypoint_all_of.py +0 -0
  235. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_speeds.py +0 -0
  236. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_trace_attribute_filter_options.py +0 -0
  237. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_trace_attribute_key.py +0 -0
  238. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_trace_attributes_base_response.py +0 -0
  239. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_trace_attributes_request.py +0 -0
  240. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_trace_attributes_request_all_of.py +0 -0
  241. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_trace_attributes_request_all_of_filters.py +0 -0
  242. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_trace_attributes_response.py +0 -0
  243. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_trace_attributes_response_all_of.py +0 -0
  244. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_trace_edge.py +0 -0
  245. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_travel_mode.py +0 -0
  246. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_traversability.py +0 -0
  247. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_truck_costing_options.py +0 -0
  248. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_truck_costing_options_all_of.py +0 -0
  249. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_tz_response.py +0 -0
  250. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_valhalla_languages.py +0 -0
  251. {stadiamaps-0.3.0 → stadiamaps-0.5.0}/test/test_valhalla_long_units.py +0 -0
  252. {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 by setting
39
- # host to https://api-eu.stadiamaps.com.
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.
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "stadiamaps"
3
- version = "0.3.0"
3
+ version = "0.5.0"
4
4
  description = "Stadia Maps Geospatial APIs"
5
5
  authors = ["Stadia Maps Support <support@stadiamaps.com>"]
6
6
  license = "BSD-3-Clause"
@@ -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
+ )
@@ -15,7 +15,7 @@
15
15
  """
16
16
 
17
17
 
18
- __version__ = "0.3.0"
18
+ __version__ = "0.5.0"
19
19
 
20
20
  # import apis into sdk package
21
21
  from stadiamaps.api.geocoding_api import GeocodingApi
@@ -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.3.0/python'
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.3.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 ('LineString', 'Polygon'):
43
- raise ValueError("must be one of enum values ('LineString', 'Polygon')")
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": [List[Coordinate].from_dict(_item) for _item in obj.get("sources")] if obj.get("sources") is not None else None,
114
- "targets": [List[Coordinate].from_dict(_item) for _item in obj.get("targets")] if obj.get("targets") is not None else None,
115
- "sources_to_targets": [List[MatrixDistance].from_dict(_item) for _item in obj.get("sources_to_targets")] if obj.get("sources_to_targets") is not None else None,
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)