I want to use the API from Pro6PP (http://www.d-centralize.nl/pro6pp/support) to fill in the address fields, from a Dutch database.
The request to that database is like this example
http://api.pro6pp.nl/v1/autocomplete?auth_key=YOUR_AUTH_KEY&nl_sixpp=5408xb&streetnumber=6&format=xml&pretty=True
The return is like this:
<?xml version="1.0" encoding="UTF-8"?>
<response>
<status>ok</status>
<results>
<result>
<nl_sixpp>5408XB</nl_sixpp>
<street>Reestraat</street>
<city>Volkel</city>
<municipality>Uden</municipality>
<province>Noord-Brabant</province>
<lat>51.64464</lat>
<lng>5.6526</lng>
</result>
</results>
</response>
This is the php code example from the developpers documentation:
<?php
// This example requires the PHP Curl module installed
// In php.ini: extension=php_curl.dll
// Set account + address parameters
$auth_key = "YOUR_AUTH_KEY";
$nl_sixpp = "5408XB";
// Optional
$streetnumber = "";
// Optionally, set a timeout (in ms)
$timeout = 5000;
$url = "http://api.pro6pp.nl/v1/autocomplete?auth_key=" . $auth_key .
"&nl_sixpp=" . urlencode($nl_sixpp) .
"&streetnumber=" . $streetnumber;
$ch = curl_init();
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);