Admin
API för att hantera adresser och anmälningar i Anslutamotorn
FormatXML AuthLogin OriginAnslutamotorn ConsumerStadsnät
search_address
The search is always a direct search, searching for "Storgatan 2" and mode "address" will only show matches where address is exactly "Storgatan 2". This search function will never return more than 100 matches
Request
GET /admin/edit/connect/plain/api
Attributes
- mandatory
Data format: string
Example: address
What to search, possible values are "address", "building" and "streetname" - mandatory
Data format: string
Example: Arholmagatan 12
The term to search for - mandatory
Data format: integer
Example: 1234
The ID for the API user in Atlas - optional
Data format: string
Example: json
What format should the response be in, valid values are 'xml' and 'json'
Example request
GET /admin/edit/connect/plain/api?method=search_address&field=address&search=Arholmagatan+12&api_user=1234
Response success: 200
HTTP/1.1 200
Content-Type: application/xml<connect> <response> <matches> <post_1234> <id>1234</id> <oid>8918</oid> <origin>import</origin> <streetname>Annedalsgatan</streetname> <streetnumber>4</streetnumber> <streetletter></streetletter> <address>Annedalsgatan 4</address> <building>Annedal 2</building> <premise></premise> <zip>72460</zip> <city>Stockholm</city> <ownername></ownername> <owneraddress></owneraddress> <ownerzip></ownerzip> <ownercity></ownercity> <keywords></keywords> </post_1234> </matches> </response> <status>success</status> </connect>