Hi,

as title says, I would like to know how should I set my XML file so lat/long data gets imported?

I am using locations for node (not cck) and I have an XML file with latitude/longitude fields as separate nodes in the XML.

In Feeds, for target I see "locations.Coordinates" and "locations georss:point".

Which of these two should I use, and how to format the lat/long node in the XML?
Does it have to be in single XML node (e.g. 39.68472 -88.30639), as separate nodes for lat and long. If it's in single node, how should the lat/long be separated, with a comma, with a space?

A simple documentation on this would be great.

Thanks!

Comments

davidhk’s picture

Hi, I've just had a similar requirement, loading lat / lon coordinates from CSV into nodes that use a field from the original non-CCK version of the Location module.

The mapping that worked for me was to use "locations georss:point" as the target.

The source is a single text field which contained the latitude, then a space, then longitude.

eg "22.3090227 114.2994710"

which is a point in Hong Kong.

I worked it out by trial & error, and looking at the samples in the location_feeds\tests\feeds directory.

regards, David

dizarter’s picture

Never mind, upgrading to the newest version and clearing the cache helped.
Options for mapping to lat/long separately are now available.

MXT’s picture

Version: 6.x-1.x-dev » 7.x-1.x-dev

Options for mapping to lat/long separately are now available.

WHERE??!?! Is this info valid also for 7.x version?

Thank you very much for helping