I have the following idea to get addresses filled by zipcode and housenumber.
We are in the Netherlands and there is a webservice which returns address, municipality and geocodes.
Response is:
{"status":"ok","results":[{"nlzip6":"1118CZ","streetname":"Evert van de Beekstraat","city":"Schiphol","municipality":"Haarlemmermeer","province":"Noord-Holland","latitude":"52.303780","longitude":"4.750269","phoneareacode":"020"}]}
With invalid request we get:
{"status":"error","errorcode":11,"errormessage":"no results"}
I would like to be able to call this from the accountcard where I have a field zipcode + housenumber.
I have tried with Javascript but run into the Cross-Origin Resource Sharing (CORS) limitations.
So I was thinking:
Can't we attach this to a virtual entity where we can do a lookup with Javascript and webapi call easily.
This webservice doesn't support multiple retrieve but when we can limit this to get this one records with parameters it will work I guess.
Or are there better ways to get this up and running.
If the virtual entity is the way to go I need the custom dataprovider but I am not used to create plugins with VS.
Thanks