I'm trying to create a database of restaurants on my website. I created a CSV file listing the name, address, city, state, and zip of each restaurant. I then used the "Node Import" module to import the CSV file into node format. That module allowed me to map each column from the CSV file to a field in the node. So I mapped name with name, address with Location:address, etc. The first time I attempted the import it gave me an error. Apparently, even though I didn't have a column for Latitude and Longitude in my csv file, I still need to provide them or "leave them both blank". So I created 2 columns in my csv file and put a dummy "0" in them(leaving them blank didn't work). This allowed me to import the nodes.

Now, when I click each node, instead of showing the map in the page it just has the address listed and a link below that says "see map". This link links to google maps, which properly displays the map with the correct marker location.

Question 1:
How do I display the map within the node?

I next tried to make a view to display all the nodes of the type "restaurant" using the Gmap view-type. The map on this page however just shows the U.S. with one marker in the middle(clearly not the location).

Question 2:
How do I display the correct map without latitude and longitude?

Comments

ray007’s picture

This is an issue for the node_import module. Gmap only show what location has stored as coordinates.
Some time ago I sent a patch for node_import to try to geo-code locations on import, no idea whether that got applied or not.

taqwa’s picture

I think something's also going on with Gmap as well. After importing the data, if I go to edit a restaurant. I see the Google Map within the location field (below the address), the correct latitude and longitude's have been filled in below the map. I then click save but still don't see a map on the node page.

taqwa’s picture

Let me add that the map on the "edit" page has the marker at the correct location. Do I need to add any code into the body of the node to display the map?

bdragon’s picture

Status: Active » Closed (duplicate)