Advice on moving from GMAP+Location to Openlayers and...

Events happening in the community are now at Drupal community events on www.drupal.org.
c-c-m's picture

Hello

I am currently running a website (http://archtlas.com) which relies on Location to store location data and GMAP to display it. I'd like to start using OpenLayers instead, because they are more complete and more customizable. I guess I could keep on using Location and OpenLayers, but I'd also like to make address input more user friendly, and there is where the questions come:

  1. Which is the more user friendly module for storing data? Most users in my site don't know exact latitude and longitude coordinates so they usually have two options: either typing the address or pointing to a map.

  2. How can I import data from Location to the new module?

  3. Is there something I am missing that I should know before changing modules?

Thank you,

Carlos

Comments

Hi

primozsusa's picture
  1. pointing to the map and storing info you can do really nice with wkt cck field for openlayers information will be stored in this wkt field with some code around lat and log... no height but you dont need it

  2. for typing address and finding location you can try openlyeres geocoder related project currently there is some problems with cck wkt change in one function passing by reference... it it is still working but you have annoing worning massage above... the real problem is that when you find location by typing address this module does not store this "code" location in wkt filed but you can use tokens to populate other fields and store information in your content type node

  3. with import: you have two options to populate new content type node fields like text fields... text field lat and text field log and then draw this on openlayer map... or to make a module that will generate this "code" lat log string and then populate openlayers wkt field... if you go with text field you dont need to program... also if you will be using openlayers geocoder you can use this same fields to populate them from the results of geocoder... without programming

  4. try playing with it little bit first...
    good luck, hope it helps
    Primoz

Thank you very much for your

c-c-m's picture

Thank you very much for your information.

I will further investigate all the options, but I was considering using http://drupal.org/project/openlayers_geocoder module to store information in a friendly user way. Did you have any experience with it? Would you recommend it? What about Geo Module? (I red it was somewhat outdated, although its description looks good and there's more people using it that the other)

As for importing module from location to cck field I saw this issue that may be what I am looking for http://drupal.org/node/946140 (unfortunately it has not yet been developed)

PD: I'd be glad to read more points of view

Abtout Openlayers_geocoder

primozsusa's picture

Abtout Openlayers_geocoder Its hard for me to judge because i am also not so experienced with it... I just tried it... It was working. From the first look you can use it just when storing data, but as i understand it is exactly what you are looking for. In general i am also getting to know all these modules. Right now i am using both openlayers and Geo... I am trying to get to know what i can do without programming before i will have to learn how to make a custom module...
http://drupal.org/node/241563
http://drupal.org/node/595872

About import... For test you can try like this:
If you will be using open-layer if you dont need to do anything special with the lat and long except showing on the map you can try

1.make new content type with text lat and long
http://drupal.org/node/627816 after this will be working

2.make a small view of your existing data nodelocation, and export it with a view to csv...
3.import data from csv back to this new contentype nodes with feeds, i dont know, you probably have a lot of data but for small test it could be ok...

I dont know maybe this can be your soulution...
niceday
Primoz

This might be interesting to

primozsusa's picture

This might be interesting to watch

http://affinitybridge.com/blog

Location and Mapping

Group organizers

Group categories

Wiki type

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: