Greetings all,
I've been working on an address module and address API over the last few weeks here at CivicSpace Labs (http://www.civicspacelabs.org). It is now a Drupal project at http://drupal.org/node/18723.
You can test out the files and learn how to use the API (or extend support of the API for other countries) with documentation all currently available in the CVS repository at http://cvs.drupal.org/viewcvs/drupal/contributions/modules/address/
We've already had a contribution that adds partial support to the API for German addresses (thanks to "pancho").
If in playing with it, you discover some bugs or have some helpful suggestions, please file a task or bug report at http://drupal.org/node/add/project_issue/address/
-Ankur
Comments
Renamed to location.module
While still under development, address.module has been renamed to location.module.
Just take a look at the project page (http://drupal.org/node/18723) of this powerful module.
You can find the latest version in the CVS repository at http://cvs.drupal.org/viewcvs/drupal/contributions/modules/location.
Feel free to file an issue (task, feature request or bug report) at http://drupal.org/node/add/project_issue/location.
Really Cool! Profile integration?
Ankur,
I don't know why people aren't clamoring all over this one. Very cool! So great to be able to find things by what's nearby.
Is it possible to use this module with profiles to find users by location?
And is it possible to combine location searches with other search to, for instance, find a specific node type with location information nearby? Or taxonomy + location?
I know this stuff isn't new to CivicSpace, but it's great to see these features here. Thanks for the great work!
-Jeff
Finding users by profile:
Finding users by profile: It's possible, but it all really depends on what you're using to record locative information for users in their profile. The hope is that anyone that is implementing and maintaining a module where some kind of address information is collected will use the API provided by this project. All the functions are there, it would just require using this module (which you can enable for the API while disabling all of it's node-specific features).
I've gotten a few requests to be able to specify a node types in a location-based search. This is something I'll try to include before the first release...
As for taxonomy + location, this is another one of those things for which I want to receive more requests before I try to introduce it into the project. I just feel in general that there are a lot ways taxonomy itself can be extended before it would be reasonably feasible to make location work for this kind of search.
Ankur Rishi
(CivicSpace)
I'd like to be able to allow
I'd like to be able to allow my users to specify their zip code and let other users then see on a map where the users are located. I'd also like to provide a map where all users' locations are marked. I do have zip code data for Germany and I do have a geographical data for cities in Germany. Unfortunately I do not have any zip code data for other countries (I would mainly need European countries). Anybody knows a source?
Now the question: Would I be able to use your module to do this?
--
If you have troubles with a particular contrib project, please consider filing a support request. Thanks. And, by the way, Drupal 4.6 will support PHP 5.
--
Drupal services
My Drupal services
Quick Question
Just a quick question - can you associate multiple addresses to a given node or is it just a 1 to 1 relationship?
I haven't included anything
I haven't included anything as of yet for doing this, but if this feature request gets repeated over time I'll look into adding something to enable this in the future.
Ankur Rishi
(CivicSpace)
Ankur,
Ankur,
I second this request. For example, if I post a volunteering opportunity in multiple locations, with a one-to-many relationship, the volunteer opportunity can be made to appear in multiple zip code searches or content types. If I choose to make the opportunity listing available in all ZIP codes in a specific city, county, state or even nationwide, the listing will appear in all ZIP code searches done within that area.
Volunteer Match.org already does this. In fact, I have lifted some of the text for this post from there (see MultiZip Tool):
http://www.volunteermatch.org/nonprofits/services/
I also think it will be useful for similar events that are conducted simultaneously across a region, several states or nationally. Not sure if this already built into the event search module on Civicspace.
I've posted an issue
I've posted an issue (http://drupal.org/node/19484) in the tracker for the problem of attaching multiple locations to a node. Given the current architecture, and the things it has been optimized, this feature will not be quickly addressable. However, I want to maintain the issue and keep it alive for feedback. My hope is that it can be added, though perhaps not for the first release of this project.
Ankur Rishi
(CivicSpace)
Timezone integration?
I just noticed the existence of this module a few minutes ago, when I was running a CVS update on HEAD (contrib), and I saw over 50 files being downloaded for '/modules/location/'! I see that you guys have just added support for a huge number of countries. Cooool.
I'm wondering if this module would be able to help in solving the timezone dilemna that currently plagues Drupal. Could this module be extended to store the timezone of each country (or even of each state / province in a country), and to define specific rules for handling time in that location, such as daylight savings? For example, I currently use a custom PHP function on my site, which calculates if a given time falls within the daylight savings period for Sydney AU, and modifies the time accordingly. It would be great if I could somehow associate this function with the particular location of AU, NSW (the state that Sydney is in).
Jeremy Epstein - GreenAsh
Jeremy Epstein - GreenAsh
Database of world cities
I have just convinced a data-collection company to let me GPL a database with cities of the world. Fields include country, city, city accented (alternate spellings and non ascii characters), region (numerical, 1-8, must be something like continent), latitude and longitude.
The database has over 3,047,000 entries! I'll be calling on everyone interested in the location module to help decide how best to use and integrate this. It seems realistic that we could have lat/long location functions for every city in the world very soon. One of the big hurdles is that the current location module depends on complete zip-code information to be really useful (zipcode is the primary key of the zipcodes table, the main datasource for the location module). With this new database there are no zipcodes, so we'll have to find a way to add those later and let the module live with incomplete information in the meantime.
I'm preparing a more official announcement to thank the company, but wanted to give the heads-up here.
cheers,
- Robert Douglass
-----
www.robshouse.net
www.webs4.com
Announcement
here: http://drupal.org/node/19983
- Robert Douglass
-----
www.robshouse.net
www.webs4.com