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

Geocoding

Development and Programming

Tannerhof - Naturhotel & Gesundheitsresort's avatar
Tannerhof - Naturhotel & Gesundheitsresort
26 posts
15 years ago
Tannerhof - Naturhotel & Gesundheitsresort's avatar Tannerhof - Naturhotel & Gesundheitsresort

Mark this is wonderful! Works fine for me. One question though: is there a way to display the hybrid and satellite view buttons inside the resultung map?

       
Brian M.'s avatar
Brian M.
529 posts
15 years ago
Brian M.'s avatar Brian M.

I’d be interested in seeing your geocoding in action if you’ve got a link? 😊

       
scott p's avatar
scott p
23 posts
15 years ago
scott p's avatar scott p
Finally, if you don’t like my default map then you can get to the raw data as follows:
{office_location_raw}
{latitude}, {longitude}
{/office_location_raw}
To clarify, just append a “_raw” to the field name and then inside of that pair you can use the {latitude} and {longitude} variables to return each points location. The pair will loop for as many locations as you have.

let me get this straight - using this will create a map with however many markers you have for every location?

if so… I have further questions. This may be just what I’m looking for. =)

nice work.

       
Simon-a's avatar
Simon-a
64 posts
15 years ago
Simon-a's avatar Simon-a

/* Edit */

After some time, I found my answer 😉

But I still have a question, there’s any way to show all the entry in ONE map ?

Thanks Mark !!!

Best regards

Hello,

More I spend time on this forum, more I love the EE community 😉

This plugin sound really great (M.Huot is one of my hero’s 😉)

But since I don’t really understand English perfectly, can some one help me a little bit ?

I’ve generate a google API key, put it into the EE extension page, but right now, I don’t now what to do…

  1. I guess I have to create a custom field ?
  2. In the template I would like to see the google Maps, which code I’ve to use ?

Thanks you in advance ! To be honest, I’ve even have a dream last night about this !!!!

       
Adam Khan's avatar
Adam Khan
319 posts
15 years ago
Adam Khan's avatar Adam Khan

I need to generate a coordinates field not from clicking on a map but from an already-existing address field using the Google Maps API’s GClientGeocoder. This is I think simpler than what you’ve already done. Any pointers gratefully received. Diving in…

       
scott p's avatar
scott p
23 posts
15 years ago
scott p's avatar scott p
I need to generate a coordinates field not from clicking on a map but from an already-existing address field using the Google Maps API’s GClientGeocoder. This is I think simpler than what you’ve already done. Any pointers gratefully received. Diving in…

I’ll second this… this is the ideal implementation for a project I’m working on. I need one map per entry on one of my weblogs. I haven’t gotten too far into it yet though.

       
scott p's avatar
scott p
23 posts
15 years ago
scott p's avatar scott p

getting back to this… actually this looks really easy. Google’s code:



modified body section for EE, assuming separate address, city, state, zip custom fields (exp:weblog tags excluded):



I’ll work on implementing this later… for now, 4th of July festivities. 😊

Thoughts?

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

Hiya,

Sorry to drag all this up again Mark but just came across this extension and was wondering if I am doing something wrong in getting it to work?

I have installed the extension and the language file and created a new field with the geo type. I then go and publish a new entry and place the code in the page to show the map but all it does is spits out the ee code and not a map.

Does anyone know why this might be. Also does this work with EE 1.6? I am currently on 1.5.2 but just wondering when I upgrade if it will work on that as well.

Thanks.

Mark

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

Hiya,

Sorry for the bump but was just wondering if anyone had any ideas on this at all as I would really like to use something like this in an upcoming project that I am going to be undertaking.

Best wishes,

Mark

       
Adam George's avatar
Adam George
283 posts
15 years ago
Adam George's avatar Adam George

WOW!!!!!!!!!!!!!!!!!!!!!!!!!!!

Wow! Wow! Wow!

This extension is awesome!! And so fun!!

@Mark Bowen - I’m using EE ver 1.6 and it works like a charm 😊

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

Hiya Adam,

Just wondering then if I am doing anything wrong at all then?

I can see the map with no problems when going to the publish screen and it saves the data because when I go back to edit the entry afterwards then the pin is still in the right place but if I place the tag for the field that I have set as the geo field into a template then I just get back the standard EE tag as it looks in the template as if it isn’t being parsed or something.

The field I have is called Photo Information (short name = photo_information). I am placing this into a template that is used by the entries as such :

{photo_information width="300px" height="200px"}

but all I get back is the {photo_information width="300px" height="200px"} code showing exactly like that on the page!! :-(

Does anyone know why this might be?

Thanks.

Mark

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

Hiya,

Sorry to keep on bumping the thread like this but was just wondering if anyone had any ideas about this at all. I have been trying and trying and trying to get this to work but it just won’t. I am almost 100% certain that I am not doing anything wrong but I will always be the first to admit to it if I have! 😊

Any help with this would be greatly appreciated though.

Thanks.

Mark

       
Mark Huot's avatar
Mark Huot
587 posts
15 years ago
Mark Huot's avatar Mark Huot

Hi Mark. Sorry for the slow response, I must have gotten unsubscribed from this thread, back before I realized what ‘smart emails’ were. Anyways, I’m not sure what’s going on in your template where that tag wouldn’t get parsed. Can you provide a little more info about the page? Is it embedded? Does any Google JavaScript get pushed out to the page?

thanks. mark.

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

Hi Mark,

Thanks for the reply. The template has pretty much nothing else in it as I was just trying to test out the extension on its own before adding back in loads of other code. When I view the page though all I get is the {photo_information width="300px" height="200px"} on the page and also showing in the body of the html page.

Not really too sure what is going on at all?

Mark

       
Mark Huot's avatar
Mark Huot
587 posts
15 years ago
Mark Huot's avatar Mark Huot

And the map is working in the CP, so you have the extension enabled correct?

       
First 3 4 5 6 7 Last

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.