51 Posts
morhinio
9 years ago
Topic

Hello,

I want to get geolocation data by address. I have created the following fields in my Form & Content Type (Admin form):

  • street: text, storage (custom, article - introtext)
  • city: text, storage (custom, article - introtext)
  • zipcode: text, storage (custom, article - introtext)
  • country: text, storage (custom, article - introtext)
  • longitude: text, storage (custom, article - fulltext)
  • latitude: text, storage (custom, article - fulltext)
  • geolacation: address to coordinates, storage (none)
    • Construction:
    • Behavior: concatenate
    • Address: 4 fields (street, city, zipcode, country)
    • Latitude (Field): latitude
    • Longitude (Field): longitude


If I save the content type, no latitude and longitude data are strored in the database.


If I change the fields latitude and longitude as follows:

  • longitude: text, storage (custom, article - introtext)
  • latitude: text, storage (custom, article - introtext)

No data will stored in the database and all fields of the content type are emtpy after saving.

I use Joomla 3.4.1 and seblod 3.5.0.

What make I wrong? Has someone a tip for me?

Get a Book for SEBLOD
9 years ago
4
Level 1

Hi morhinio,

Your problem is in the storage setting of all your fields.

You should select a storage like that:

  • street: text, storage (standard, article - street)
  • city: text, storage (standard, article - city)
  • zipcode: text, storage (standard, article - zipcode)
  • country: text, storage (standard, article - country)
  • longitude: text, storage (standard, article - longitude)
  • latitude: text, storage (standard, article - latitude)

I advise you delete all your fields and create them after.

Regards,
Mehdi

51 Posts
morhinio
9 years ago
3
Level 2

Hello Mehdi,

thank you for your answer.

Why should not I use custom, article - introtext as storage? Is that wrong?

Is your way a best practice?

9 years ago
2
Level 3

Hi morhinio,

For your case, the custom storage is the first mistake. The second is to choose "introtext" column in database as the storage place.

The storage i described in my previous post is the right storage mode.
Try it and say us if you solved your issue.

Regards,
Mehdi

51 Posts
morhinio
9 years ago
1
Level 4

Hi,

it works great. Thank you.

I want to use a radius search in the frontend. I have created a separate address to coordinates field (with autocomplete) in my search form.

I have created the fields like in this video:

http://www.seblod.com/resources/videos/using-the-search-by-radius-feature

The address field works fine. But if I choose a radius, my items are not filtered.

Do I still need another plugin or field?

9 years ago
0
Level 5

Hi morhinio,

Please, open a new thread for your last question.

Before, just an indication, make sure you set the appropriate match operator like you see in the documentation video.

See you soon in the new thread.

Regards,
Mehdi

Get a VIP membership