1 of 2
1
Yahoo! and Google Geocode extension
Posted: 04 January 2008 06:16 PM   [ Ignore ]  
Summer Student
Total Posts:  23
Joined  09-28-2007

I have a geocoding extension that plugs right into the Publish/Edit of the control panel if anyone is interested.
Enable the extension and map your custom fields (address, city, country, lat and long) and follow the instructions.
You will need to signup for a Yahoo! or Google Map AppID for this to work.

UPDATE 1.1.1 : now you can choose between Google or Yahoo!

UPDATE 1.2 - added some error checking for field mappings, selection of weblogs you want to enable for geocoding and better multisite support.

UPDATE 1.4.1 - added geocoding for SAEF, added viewing of maps in any template and placing markers via GeoRSS, added the ability to control map features through a customizable javascript function (i.e. add traffic overlay, add sat or hybrid view, etc) cleaned up a bunch of bugs and added documentation.

UPDATE 1.4.3 - fixed a few bugs and updated docs.

Now available at http://coolclimate.ca/coollocation
Enjoy.

Profile
 
 
Posted: 05 January 2008 06:27 AM   [ Ignore ]   [ # 1 ]  
Professor
Avatar
RankRankRankRankRankRankRank
Total Posts:  10764
Joined  04-15-2006

Hiya,

Just downloaded this and took a look at using it. Looks like a great addition for EE grin

Not too sure if I am using it correctly though as I couldn’t find the instructions anywhere for this? I tried clicking on the Documentation link in the extension panel but it went to your main site and not any instructions.

I created custom fields for address, city, country, zipcode, latitude and longitude and filled out the extension settings. When I go to publish a new entry I can see the Cool Geocode tab panel and can type in an address. If I click geocode then it does indeed place the latitude and longitude into the Lat and Long custom fields that I have provided. Clicking the other button though doesn’t place any information into the other custom fields. Is it meant to?

Also afterwards is there some easy way of showing this map in an entry or do I have to look into the Google Maps code to create one for myself?

One last question, I promise!! grin

Would it be possible to get this working in some way with the Stand-alone Entry Form and Stand-alone Edit Form?

Looks like a really neat addition to EE but if I could possibly get a little help with it then this would be massively appreciated.
Sorry I didn’t post earlier when I saw this. I think I noticed it literally just after you had posted it but wanted to check it out first.

Thanks for the great work on this.

Best wishes,

Mark

 Signature 

Shopping Cart Plugin
Full list of add-ons
———————————————————-
Buy me a drink, or two if you like!!

Profile
 
 
Posted: 05 January 2008 11:25 AM   [ Ignore ]   [ # 2 ]  
Summer Student
Total Posts:  23
Joined  09-28-2007

Hi Mark,

yes, i am a little light on the docs right now….will write them next week.

this extension was developed for a specific workflow for a site I was/am working on.  if you fill out the main form including your address, city, etc, the button ‘get address’ just sucks them into this little goecoding form.  What we found was that sometimes you have to fudge the address to geocode properly especially if you are dealing with ‘in the middle of nowhere’ places, po box mailing addresses etc.  but you shouldn’t have to change your recorded mailing address in your custom field to do so.
- that said, it would be really easy to have another button to push the geocode address to the fields address, city etc.
what do you think?

i’ll look into the Stand alone entry/edit form.

as far as using the lat &long;with a plug-in to show a map (either in google or yahoo) is easy the problem is having something that is flexible enough to do all the things that folks would want to do is another issue.  I could easily do a base plug-in to get people started, do you think that would help?

Profile
 
 
Posted: 05 January 2008 11:53 AM   [ Ignore ]   [ # 3 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  142
Joined  07-21-2006

Had a quick look. Looks fantastic. Will test this week.

Wineknow: re: extending and what would help…

personally i know something where a member could update their location on their profile would be useful (or at registration), and then to be able to show on a public facing page a member location map (either all members, or via member group). Kind of like a member-site only frappr.

I guess from that point it would be pretty easy to have the pins click to reveal member name/avatar/profile picture.

Hope that helps.

 Signature 

// matthanson.net
// twitter

Profile
 
 
Posted: 05 January 2008 02:12 PM   [ Ignore ]   [ # 4 ]  
Lab Technician
RankRankRankRank
Total Posts:  1083
Joined  03-25-2005

Hey!!!

This is really well done and works perfectly in every respect. I was geosoding using a separate template to geocode address and add to lat, lng fields and updating database, then another template to click to geocode.

How hard would it be to add Google geo? Legally, one cannot use Yahoo to geocode for Google maps. I would be willing to contribute $ smile

(Kelowna! I lived there a lot )

 Signature 

BKDesign Solutions - Learn XHTML and use   Web Standards to build accessible websites that validate

Profile
 
 
Posted: 05 January 2008 07:30 PM   [ Ignore ]   [ # 5 ]  
Summer Student
Total Posts:  23
Joined  09-28-2007

if people are finding this worthwhile, it is pretty easy to add a choice between google and yahoo.
give me a few days to find an hour to implement it.

Profile
 
 
Posted: 05 January 2008 07:42 PM   [ Ignore ]   [ # 6 ]  
Lab Technician
RankRankRankRank
Total Posts:  1083
Joined  03-25-2005

That would be totally completely beyond awesome.
It would be extremely good for EE as well.
Where2.0
Add meta tags location.
Real Estate Geocode
Events - Map
Maps in general.
Map to office
Location in RSS

30 secong video-why you need google maps
.

 Signature 

BKDesign Solutions - Learn XHTML and use   Web Standards to build accessible websites that validate

Profile
 
 
Posted: 05 January 2008 09:57 PM   [ Ignore ]   [ # 7 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  485
Joined  10-10-2004

This is really, rally cool. I’m impressed.

As an aside, I too would like to use with google maps smile. If anyone has examples of how they are using this on the front end, I’d like to take a look. A base plug-in for the front end would be very handy.

@ Matt -

personally i know something where a member could update their location on their profile would be useful (or at registration), and then to be able to show on a public facing page a member location map (either all members, or via member group). Kind of like a member-site only frappr.

You would use an rss feed with the info to send all that data to one map, right?

Profile
 
 
Posted: 06 January 2008 03:19 PM   [ Ignore ]   [ # 8 ]  
Summer Student
Total Posts:  23
Joined  09-28-2007
Bruce2005 - 05 January 2008 02:12 PM

Hey!!!

This is really well done and works perfectly in every respect. I was geosoding using a separate template to geocode address and add to lat, lng fields and updating database, then another template to click to geocode.

How hard would it be to add Google geo? Legally, one cannot use Yahoo to geocode for Google maps. I would be willing to contribute $ smile

(Kelowna! I lived there a lot )

Google has been added—please let me know if you experience any problems.

Profile
 
 
Posted: 06 January 2008 05:09 PM   [ Ignore ]   [ # 9 ]  
Lab Technician
RankRankRankRank
Total Posts:  1083
Joined  03-25-2005

Tell you what, I’ll let you know how it went.
Installed the update. tested it out.
Works completely perfectly in every respect.

Thank you for releasing this, it is a very very valuable addition to EE, Simple plain and easy geocoding has immense value, and the future will prove that it will become even more important.

The great part is that this allows any customzations by the user, rather than trying to do it all, _like adding maps etc), and losing other benefits. As an example, if a user only wants a location meta tag, it does that and no more. Wants a map, just add the map code. Wants anything else where latitude longitude is needed, it does that.

Perfect!

 Signature 

BKDesign Solutions - Learn XHTML and use   Web Standards to build accessible websites that validate

Profile
 
 
Posted: 06 January 2008 09:16 PM   [ Ignore ]   [ # 10 ]  
Lab Technician
RankRankRankRank
Total Posts:  1083
Joined  03-25-2005

I get that if the fields aren’t right match for the weblog I am on.

 Signature 

BKDesign Solutions - Learn XHTML and use   Web Standards to build accessible websites that validate

Profile
 
 
Posted: 06 January 2008 11:44 PM   [ Ignore ]   [ # 11 ]  
Summer Student
Total Posts:  23
Joined  09-28-2007

ok, here are some thoughts.
i can get the google blank screen if I don’t have a valid zoom number (1-13) (I will add a check for that)
also, I have a build that I am working on that allows you to limit it to specific weblogs (helps page load time for the weblogs where it is N/A)
make sure your zoom is set.  and try to geocode (just enter san jose, ca or something) to see if it works at all.

also does it do the same thing on a new post as editing an existing?
-kevin

Profile
 
 
Posted: 07 January 2008 10:08 AM   [ Ignore ]   [ # 12 ]  
Summer Student
Total Posts:  23
Joined  09-28-2007

there must be something conflicting in the javascript.
I have started renaming the js functions to reduce conflicts and may have to do that to the globals as well….
do you mind PMing me the view source?, so I can try to see if there are any other issues?
-kevin

Profile
 
 
Posted: 10 June 2008 04:11 PM   [ Ignore ]   [ # 13 ]  
Sr. Research Associate
Avatar
RankRankRankRankRank
Total Posts:  3580
Joined  12-06-2002

Hey Kevin -

Are you still actively maintaining this?

I’m experiementing with it for a client site and would really like to turn them loose with it - but the extension is not pulling the state field as mapped.  I’ve tried using different fields as a source but nothing pulls over.

It’s on a 1.6.3 / MSM site if that makes a difference.  Any other data you’d need to diagnose?

And yes…I’ll make a donation if the site goes into production using it..wink

 Signature 

Books · Screencasts · Classes · Custom Training · Free Tuts
Next EE Class:W. MI in May

Profile
 
 
Posted: 17 June 2008 04:35 PM   [ Ignore ]   [ # 14 ]  
Lab Assistant
RankRank
Total Posts:  172
Joined  10-25-2007

Does this also work with gallery entries?

And why do you have to register/login?

Profile
 
 
Posted: 02 July 2008 03:49 AM   [ Ignore ]   [ # 15 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1130
Joined  02-15-2008

I have to say, this extension is absolutely superb! I’m having a small problem though, in that the preview (in the CP) doesn’t center on the specified area once you geocode - instead it puts it at top left. Similarly, when you double click, it doesn’t center on the the click.

I can work around it, but it’s a tad confusing especially when I hand it over to the user.

Again, this is a top extension. Nice one.

 Signature 

Andy Harris | Pepper Digital | Malvern, UK | Twitter | New to ExpressionEngine? Start here!

Profile
 
 
Posted: 02 July 2008 05:23 AM   [ Ignore ]   [ # 16 ]  
Sr. Research Associate
Avatar
RankRankRankRankRank
Total Posts:  3580
Joined  12-06-2002

Hey Andy -

Does the extension pull the state from a weblog field for you?

 Signature 

Books · Screencasts · Classes · Custom Training · Free Tuts
Next EE Class:W. MI in May

Profile
 
 
Posted: 02 July 2008 05:27 AM   [ Ignore ]   [ # 17 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1130
Joined  02-15-2008
Michael Boyink - 02 July 2008 05:23 AM

Does the extension pull the state from a weblog field for you?

Hm, no, I’m getting that problem too - I hadn’t noticed because this particular project is ‘hardcoded’ to a county/state. I guess it’s fairly easy to fix it?

 Signature 

Andy Harris | Pepper Digital | Malvern, UK | Twitter | New to ExpressionEngine? Start here!

Profile
 
 
Posted: 02 July 2008 05:34 AM   [ Ignore ]   [ # 18 ]  
Sr. Research Associate
Avatar
RankRankRankRankRank
Total Posts:  3580
Joined  12-06-2002

Not sure yet - was hoping to get the author of the extension to respond but since he hasn’t (either here or through their own site) it looks like I’ll have to see what I can figure out myself.

 Signature 

Books · Screencasts · Classes · Custom Training · Free Tuts
Next EE Class:W. MI in May

Profile
 
 
   
1 of 2
1
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1743, on December 02, 2009 03:47 PM
Total Registered Members: 119992 Total Logged-in Users: 110
Total Topics: 126119 Total Anonymous Users: 62
Total Replies: 663435 Total Guests: 450
Total Posts: 789554    
Members ( View Memberlist )
Newest Members:  tnelistimolthofrjfrancodfng1983Allen22GurindergilesbShinkenLorBackL1progmas
Active Members:    Alex HiroshiAlexis Moore-JonesAndreiCurelaruandysmithatiosisbcwBen BruntBill the GrueBlair Lblg002bridesignBruce2005bushtitcc000001ccarterCeliaGchaasChiefAlchemistChris ClarkeChris NewtonchutchinsoncinemachineCleverNicknameCrucialDavid Haighdesignerhandbagsdfng1983dhayesDrexDavisEdwin FloresemillingtonEric MillerErik ReaganfensterbabyferroconcreteFingerPaintForrest AndersonGareth Daviesguru24iainillustrationdaninformedexpatsITWYJaapMjaasumJAM1515james BrownJörg GudehusjeramiahjmorinjoemoJohnGribbenjoshinfJustin LongkazzaakcdunstanKerim SatirliKurt DeutscherlaurentPlhurlbutliquilifelukeadamislukemcrmadamovMark BowenMasonHmelissajcMichael HahnnarrationneostructuralistNevin LyneNico Smitpab514Pascal KrietePauli HuhtiniemiPeter SommerfeldPhilip ZaenglepicsselPierre FroelicherramonekalsawregistryRichard WigginsrippeRobb OttenhoffrockthenrollruthhSean McDevittSimonLove2009smartpillsmidoidstdroviaSteve FairhurststoomgeSue CrockersusansanSVA Interaction DesignTom JaegerTony OravettriomtsublewskiVishal A.vobtoaviWaielweimarmediaWes Bakerwheyyasminazackmorgan_bast_