We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Yahoo! and Google Geocode extension

Development and Programming

wineknow's avatar
wineknow
15 posts
17 years ago
wineknow's avatar wineknow

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.

       
Mark Bowen's avatar
Mark Bowen
12,637 posts
17 years ago
Mark Bowen's avatar Mark Bowen

Hiya,

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

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!! 😊

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

       
wineknow's avatar
wineknow
15 posts
17 years ago
wineknow's avatar wineknow

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?

       
mattbrighton's avatar
mattbrighton
50 posts
17 years ago
mattbrighton's avatar mattbrighton

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.

       
Bruce2005's avatar
Bruce2005
536 posts
17 years ago
Bruce2005's avatar Bruce2005

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 $ 😊

(Kelowna! I lived there a lot )

       
wineknow's avatar
wineknow
15 posts
17 years ago
wineknow's avatar wineknow

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.

       
Bruce2005's avatar
Bruce2005
536 posts
17 years ago
Bruce2005's avatar Bruce2005

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 .

       
Rob Quigley's avatar
Rob Quigley
236 posts
17 years ago
Rob Quigley's avatar Rob Quigley

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

As an aside, I too would like to use with google maps 😊. 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?

       
wineknow's avatar
wineknow
15 posts
17 years ago
wineknow's avatar wineknow
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 $ 😊 (Kelowna! I lived there a lot )

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

       
Bruce2005's avatar
Bruce2005
536 posts
17 years ago
Bruce2005's avatar Bruce2005

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!

       
Bruce2005's avatar
Bruce2005
536 posts
17 years ago
Bruce2005's avatar Bruce2005

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

       
wineknow's avatar
wineknow
15 posts
17 years ago
wineknow's avatar wineknow

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

       
wineknow's avatar
wineknow
15 posts
17 years ago
wineknow's avatar wineknow

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

       
Boyink!'s avatar
Boyink!
5,011 posts
17 years ago
Boyink!'s avatar Boyink!

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..😉

       
juro's avatar
juro
118 posts
17 years ago
juro's avatar juro

Does this also work with gallery entries?

And why do you have to register/login?

       
1 2 3

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.