- Posts: 23
Postcodes from JSON
- Steve Thomas
-
Topic Author
- Offline
- Junior Member
-
Less
More
02 Mar 2019 10:06 #1
by Steve Thomas
Postcodes from JSON was created by Steve Thomas
Our site uses PHP, not Joomla. I'm writing a PHP script to update our locally held venue data postcodes. (They currently use 8 digit grid refs and we're moving to 12 digits). Instead of using our ancient PostCode table I intend to use
postcodes.theramblers.org.uk/index.php?e...dist=10&maxpoints=20
. This returns the 10 closest postcodes to a given 12 digit grid ref together with the distance of the centre of the postcode area from the specified location. This seems to be too many results. All I would do with more than one is work out which was the closest and use that. This has already been done in the data supplied.
The url accepts parameters "dist" and "maxpoints". Setting maxpoints=1 still returns 10 results. Setting dist=1 also returns 10 results. Does anyone use this and if so can you advise how In can reduce the number of results?
The url accepts parameters "dist" and "maxpoints". Setting maxpoints=1 still returns 10 results. Setting dist=1 also returns 10 results. Does anyone use this and if so can you advise how In can reduce the number of results?
Please Log in or Create an account to join the conversation.
- Ruby Tuesday
-
- Offline
- Administrator
-
Less
More
- Posts: 933
02 Mar 2019 11:57 #2
by Ruby Tuesday
Replied by Ruby Tuesday on topic Postcodes from JSON
Please login to view the answers
Please Log in or Create an account to join the conversation.
- Steve Thomas
-
Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 23
02 Mar 2019 12:18 #3
by Steve Thomas
Replied by Steve Thomas on topic Postcodes from JSON
Please login to view the answers
Please Log in or Create an account to join the conversation.
- Ruby Tuesday
-
- Offline
- Administrator
-
Less
More
- Posts: 933
02 Mar 2019 14:43 #4
by Ruby Tuesday
Replied by Ruby Tuesday on topic Postcodes from JSON
Please login to view the answers
Please Log in or Create an account to join the conversation.
- Steve Thomas
-
Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 23
15 Jun 2019 14:05 #5
by Steve Thomas
Replied by Steve Thomas on topic Postcodes from JSON
Please login to view the answers
Please Log in or Create an account to join the conversation.
- Ruby Tuesday
-
- Offline
- Administrator
-
Less
More
- Posts: 933
15 Jun 2019 14:36 #6
by Ruby Tuesday
Replied by Ruby Tuesday on topic Postcodes from JSON
Please login to view the answers
Please Log in or Create an account to join the conversation.
- Steve Thomas
-
Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 23
15 Jun 2019 16:13 #7
by Steve Thomas
Replied by Steve Thomas on topic Postcodes from JSON
Please login to view the answers
Please Log in or Create an account to join the conversation.
- Ruby Tuesday
-
- Offline
- Administrator
-
Less
More
- Posts: 933
15 Jun 2019 19:58 #8
by Ruby Tuesday
Replied by Ruby Tuesday on topic Postcodes from JSON
Please login to view the answers
Please Log in or Create an account to join the conversation.
- Steve Thomas
-
Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 23
15 Jun 2019 20:09 #9
by Steve Thomas
Replied by Steve Thomas on topic Postcodes from JSON
Please login to view the answers
Please Log in or Create an account to join the conversation.
- Ruby Tuesday
-
- Offline
- Administrator
-
Less
More
- Posts: 933
15 Jun 2019 20:39 #10
by Ruby Tuesday
Replied by Ruby Tuesday on topic Postcodes from JSON
Please login to view the answers
Please Log in or Create an account to join the conversation.
- Steve Thomas
-
Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 23
17 Jun 2019 09:00 #11
by Steve Thomas
Replied by Steve Thomas on topic Postcodes from JSON
Please login to view the answers
Please Log in or Create an account to join the conversation.
Time to create page: 1.355 seconds
