Searches for political divisions by their natural name or OCD ID.
search(query=None)
Searches for political divisions by their natural name or OCD ID. Args: query: string, The search query. Queries can cover any parts of a OCD ID or a human readable division name. All words given in the query are treated as required patterns. In addition to that, most query operators of the Apache Lucene library are supported. See http://lucene.apache.org/core/2_9_4/queryparsersyntax.html Returns: An object of the form: { # The result of a division search query. "status": "A String", # The result of the request. One of: success, addressUnparseable, noAddressParameter, internalLookupFailure "kind": "civicinfo#divisionSearchResponse", # Identifies what kind of resource this is. Value: the fixed string "civicinfo#divisionSearchResponse". "results": [ { # Represents a political geographic division that matches the requested query. "ocdId": "A String", # The unique Open Civic Data identifier for this division. "name": "A String", # The name of the division. }, ], }