OrdnanceSurvey / osdatahub

A python package from Ordnance Survey, designed to make data from the OS Data Hub APIs readily accessible to developers.
Other
27 stars 10 forks source link

Calling PlacesAPI query method causes AttributeError #83

Closed the-freja closed 1 year ago

the-freja commented 1 year ago

Using the query method for the places API results in AttributeError: module 'osdatahub' has no attribute 'post'. Example:


bbox = (-1.4108, 50.9097, -1.4057, 50.9121)
extent = Extent.from_bbox(bbox, "EPSG:4326")

places_api = PlacesAPI(api_key)
addresses = places_api.query(extent=extent)

osdatahub v1.2.4 python v3.10.11

FHunt-OS commented 1 year ago

Fix included in PR #86