Closed (fixed)
Project:
Address Field
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
13 May 2011 at 15:45 UTC
Updated:
16 May 2013 at 04:10 UTC
Jump to comment: Most recent file
Comments
Comment #1
wesnick commentedI should have set this to "needs work" to indicate that this is an incomplete patch
Comment #2
sheldon rampton commentedHere's an updated patch with some differences. Instead of generating addresses at random, it loads a table of about 300 real addresses in multiple countries and then randomly selects one each time it needs to fill an addressfield. This is more useful for testing purposes, because they are real addresses so it is possible to see how they do with geocoding, mapping, etc. The 300 addresses include full street addresses as well as others that are incomple and consist only of city and country so it gives an approximation of the kinds of responses you might get if users were filling in the addresses.
The patch worked as expected when I tested it.
Comment #3
Garrett Albright commentedHere's my approach (which I coded up before I found this issue…derp). On the site I'm building, addresses are limited to a single country, so I had my generation approach take that into account. It won't generate real geocodable/mappable addresses like Sheldon Rampton's above, but it's working for our needs.
Comment #4
rszrama commentedWow, #2 is quite robust. I'm happy to commit that as is, but can you tell me where you got these addresses from? I'd hate to include someone's real address on the off chance someone testing their fulfillment system accidentally ships something out. ; )
Comment #5
sheldon rampton commentedHi, Ryan. The addresses come from this website that I built recently for a multinational hackathon project:
http://www.sanitationhackathon.org/
The addresses are hackathon event locations that were actually entered by event organizers. They are therefore real addresses, but they are not the addresses of individual people. They include conference centers, businesses, addresses of NGOs and government agencies. I chose this list because:
Comment #6
rszrama commentedThanks for the quick reply! Works for me. Let's put it in, and we can always remove items if someone decides it's an issue to be included. : P