187 Posts
Pathos
10 years ago
9
Topic

I'm trying to get the coordinates from adres-fields. And i get a strange effect on the fields that i put the adress in.

When i fill out a form the street, place and zip inputboxes changes. No coordinates in lat and long...

When i fill out my adres and save then this gets into the formfieldfs 

::cck::8::/cck::6.574188

I guess this is one of the lat or long, but it gets put in the street, zip and city field...

I am surely doing something wrong.... Do i need to call the fields in english? I use Adres, plaats and postcode (dutch terms)

(I use joomla 3)

Someone had the same troubles?

Thanks,

Joris

Get a VIP membership
693 Posts
rpoy
10 years ago
0
Level 1

Hi Joris,

What fields do you have in your content type?

You need to create your address fields, Latitude field, and a Longitude field.

Then you add the fields in the Address to Coordinates Field like so:

When you create a new article, and fill out the form, it should fill in the Latitude & Longitude.  

regards,

Randy

187 Posts
Pathos
10 years ago
0
Level 1

i did it like in the picture. But did.t put seb_place_ before my adres fields etc.

Will try that out a little later. I will add an image of ny fields   

Thanks for responding, 

Jorris

187 Posts
Pathos
10 years ago
0
Level 1

Here are my settings...

I didn't buy the map yet, i first wanted to see if the coordinates worked for Holland as well... If you need to have the map also, maybe thats the problem. Or do you need to activate some kind of Google plugin or framework?

187 Posts
Pathos
10 years ago
0
Level 1

the images are bigger... but i can't seem to find the way to get them in here right...

http://www.freelancewebdesigner.nl/seblod/seblodgeo.gif

http://www.freelancewebdesigner.nl/seblod/seblodgeo2.gif

187 Posts
Pathos
10 years ago
0
Level 1

And when i save a form...

http://www.freelancewebdesigner.nl/seblod/seblodgeo3.gif

this happens...

http://www.freelancewebdesigner.nl/seblod/seblodgeo4.gif

whichc could be one coordinate from the adress

187 Posts
Pathos
10 years ago
0
Level 1

Oke...i'm testing stuff and maybe its another setting that causes this weird behaviour. If i found it i will write the solution here. If someone experienced behaviour like this before i would like to know :-)

187 Posts
Pathos
10 years ago
1
Level 1

I guess the problem was with the way i stored fields...

I created a new content type to test and start fresh. 

I created the adres fields and lat and long as standard article and put it in the introtext.. I guess that was the thing that went wrong. Give them there own place...

Greetings,

Joris

693 Posts
rpoy
10 years ago
0
Level 2

Hi Joris,

How did you set the storage for your fields?  Have a look at this tutorial...

regards,

Randy

187 Posts
Pathos
10 years ago
0
Level 1

Hi Randy,

thanks for the link to the turtorial. I did store them wrong. I stored them in the introtext column. Now when i store them in their own column it works like a charm :-)

Thanks,

Joris

Get a VIP membership