This may be by design (or impossible, given the requirements for province), but location_generate currently creates only coordinates, not addresses.

I'm going to assume this is a feature request.


rooby’s picture

Yeah, this is a feature request.

It currently only tries to add coordinates.

Patches are welcome but personally this is low priority for me so I probably won't be doing it myself.

rooby’s picture

Status: Active » Fixed

Committed a fix to drupal 6 & 7 branches.
Note that for drupal 7 you also need the patch at #1207760: Warning: implode() [function.implode]: Invalid arguments passed in devel_create_greeking() line 572 until a fix gets committed for that issue.

Should be a start anyway.
It randomly selects a country and then randomly selects a state/province that matches that country.
Then it generates random values for street, city & post code.

I guess down the track maybe an option would be nice to only generate locations using the default country for the website, instead of a random country.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.