I am using Location 3.0 and GMap location with Gmap module.

I have added some address information to some of my nodes and lat and long are not being generated. Any ideas?

Here is a test view showing the 0.000000 values. http://www.biotechnologydegrees.org/geo-test

Any help is greatly appreciated.

Comments

dawehner’s picture

Did you enabled

Enable the Google Map API geocoding

underadmin/settings/gmap_location
?

This helped for me

Webster619’s picture

Thanks for the tip.

I did that, but still no lat and long. Is there something I'm supposed to do to trigger the geocoding? Some button or something?

Anonymous’s picture

Same problem with cck location field and gmap.

tgeller’s picture

I'm having the same problem. I created some locations directly, using the following SQL command:

INSERT INTO location 
  (street,city,province,postal_code,country, source, is_primary) 
VALUES 
  ('829 14th Street','San Francisco','CA','94114','US',3,0)

...along with a supporting SQL statement in location_instance, and a few others for good measure (to create the node, etc.).

But nothing I do seems to generate the lat/lon. I change the location manually via the Drupal interface, hoping that will trigger a new lat/lon: Nothing. I also tried hitting the "Regenerate marker cache" button at /admin/settings/gmap. Also nothing.

However, if I add a second location to the same node, it gets generated as it should.

Thanks in advance!

tgeller’s picture

One small advance: I disabled the GMap modules, created a node with a location, and saw that it got a geocode. I turned on GMap and, sure enough, it was mapped just fine.

So the geocoding is happening in the Location module, *not* the GMap module.

This issue is being discussed at http://drupal.org/node/317159 . I recommend that this issue be closed and that everyone head over there to hash it out. (I haven't read the thread: It might already be solved.) See you there!

tgeller’s picture

I believe this is now fixed, and will be committed to the Location module soon: See http://drupal.org/node/373723. Woo-hoo!

podarok’s picture

Status: Active » Closed (won't fix)

release unsupported
feel free to open issue against latest 7.x dev