Hi,
I thought it would be good to post this as the service at www.getaddress. io seems a good one and the results may be of use to other access users.
I have just started using a free account from "getaddress " to see if this can be used to populate address fields within an access database.
It is relatively simple to set up and use the account.
A request is sent to the web service with a specific postcode attached to the request string.
In this example I sent the postcode SY186BN
The response string is as follows:
{"Latitude":52. 448386,"Longitu de":-3.540556,"Addre sses":["Arcadia, 6 Great Oak Street, , , , Llanidloes, Powys","Bistro Hafren, 2 Great Oak Street, , , , Llanidloes, Powys","D'Eco, 4 Great Oak Street, , , , Llanidloes, Powys","Flat 1-2, 2 Great Oak Street, , , , Llanidloes, Powys","Ingrams , 3 Great Oak Street, , , , Llanidloes, Powys","Llanidl oes Town Council, Town Hall, Great Oak Street, , , Llanidloes, Powys","Milwyn Jenkins & Jenkins, Mid Wales House, Great Oak Street, , , Llanidloes, Powys","The Kitchen, 5 Great Oak Street, , , , Llanidloes, Powys","Town Hall, Great Oak Street, , , , Llanidloes, Powys"]}
The data I am interested in initially is the list of addresses each with 7 fields which is enclosed between the square brackets []
The above example has 9 records of seven fields.
The number of records will vary but the number of fields within each record will be the same even if many of them are null.
What I need to achieve is the best way to take the response string and with it populate a table with the 7 data fields * no of records. The table will already be created so this does not need to be done programmaticall y.
TblAddrTemp:
Fields:
AddrTempID
TempAddr1
TempAddr2 etc to TempAddr7
I am fairly adept at VBA and SQL so once I have the data in a temp table I should be able to devise ways to use it to populate the main address tables fairly easily.
What I am not so good at (yet!) is complex text handling/parsing.
Any help much appreciated.
I thought it would be good to post this as the service at www.getaddress. io seems a good one and the results may be of use to other access users.
I have just started using a free account from "getaddress " to see if this can be used to populate address fields within an access database.
It is relatively simple to set up and use the account.
A request is sent to the web service with a specific postcode attached to the request string.
In this example I sent the postcode SY186BN
The response string is as follows:
{"Latitude":52. 448386,"Longitu de":-3.540556,"Addre sses":["Arcadia, 6 Great Oak Street, , , , Llanidloes, Powys","Bistro Hafren, 2 Great Oak Street, , , , Llanidloes, Powys","D'Eco, 4 Great Oak Street, , , , Llanidloes, Powys","Flat 1-2, 2 Great Oak Street, , , , Llanidloes, Powys","Ingrams , 3 Great Oak Street, , , , Llanidloes, Powys","Llanidl oes Town Council, Town Hall, Great Oak Street, , , Llanidloes, Powys","Milwyn Jenkins & Jenkins, Mid Wales House, Great Oak Street, , , Llanidloes, Powys","The Kitchen, 5 Great Oak Street, , , , Llanidloes, Powys","Town Hall, Great Oak Street, , , , Llanidloes, Powys"]}
The data I am interested in initially is the list of addresses each with 7 fields which is enclosed between the square brackets []
The above example has 9 records of seven fields.
The number of records will vary but the number of fields within each record will be the same even if many of them are null.
What I need to achieve is the best way to take the response string and with it populate a table with the 7 data fields * no of records. The table will already be created so this does not need to be done programmaticall y.
TblAddrTemp:
Fields:
AddrTempID
TempAddr1
TempAddr2 etc to TempAddr7
I am fairly adept at VBA and SQL so once I have the data in a temp table I should be able to devise ways to use it to populate the main address tables fairly easily.
What I am not so good at (yet!) is complex text handling/parsing.
Any help much appreciated.
Comment