Technology Tools for Ministry

Community

Web-Empowered Church User Community
All Categories > Ministry Tools > Map Extension > Request: Sensitive Geocode by zip code?
Total Posts: 5 - Pages (1): [1]
Author: Alexander Pepper
Posted: Apr 15 2008 - 07:16 PM
Subject: Request: Sensitive Geocode by zip code?
Hey guys.
First of all: another really nice and useful extension. Thanks for the great work!

I just saw the option "Sensitive Geocode" which is a great idea. The only bad thing: I live in a 3 million something people city, so it would be great to differentiate between the users a little bit more, than by city. Would it be possible to combine users using the "zip code"? Here in Germany a zip-code represents quite an area, but still be more accurate than the city overview, while being "sensitive".

So my Request: Using zip-code for sensitive geocode.

blessings
Alex
user picture Author: Christoph Koehler
Posted: Apr 16 2008 - 12:48 PM
Subject: re: Request: Sensitive Geocode by zip code?
Alex,

You can change it yourself for now until we decide whether or not to add it. I don't see any problem with it right now but I'd like to think it through some more.
On lines 332 & 335 in pi2/class.tx_wecmap_pi2.php, change cityField to zipField.

Christoph
Author: Alexander Pepper
Posted: Apr 17 2008 - 12:15 PM
Subject: re: Request: Sensitive Geocode by zip code?
Awesome!
That hack works. The is one little thing: The markers are places right, but the number and the description itself is not representing the right number. e.g if there are two locations in one zipCode-Area and one location in another zipCode-Area, but the same city, its saying "3 locations in city". Where in the code is this generated, so I can change it?

Blessings
Alex
user picture Author: Christoph Koehler
Posted: Apr 17 2008 - 12:39 PM
Subject: re: Request: Sensitive Geocode by zip code?
Alex,

Lines 350 and 352 set the description from a locallang file. $count contains the number of markers in that area.

Christoph
Author: Alexander Pepper
Posted: Apr 18 2008 - 05:55 AM
Subject: re: Request: Sensitive Geocode by zip code?
Great. Thank you for your wonderful support. Now the application is working exactly like I want to.
Blessings
Alex
Total Posts: 5 - Pages (1): [1]
You must login to post a message to this conference.