simplemap
                                
                                 simplemap copied to clipboard
                                
                                    simplemap copied to clipboard
                            
                            
                            
                        Maps field is empty when entry is imported via FeedMe
Description
We have an entry with a Maps field. When we create the entry via a FeedMe import,
- the imported values are not shown when editing the same entry in Craft CP (the fields are empty) and
- the location is wrong, so the maps of an entry in the frontend is placing the location PIN wrongly (I guess on the equator)
Our import is setting the fulladdress (with city, postcode and country) as well as fields city, postcode and country separately.
3 questions:
- Should this work?
- Are city, zip and country sufficient
- Should they get geocoded, when the FeedMe import runs?
Steps to reproduce
- Have an entry with a maps field
- Create a feedme import, setting the fields fulladdress, city, postcode, country
- Run the import
- Open the entry in CP and look at the maps field. Everything is empty.
Additional info
- Craft version: 3.5.19.1
- Maps version: 3.9.0.2
- Feed Me version: 4.3.6.
- PHP version: 7.4
@hiasl Were you able to resolve this issue?
@kerns not yet, but a colleague of mine who is filling entries with the Maps plugin through GraqhQ said that data is only saved/interpreted correctly if coords are available. That means you need to geocode before saving. I will try this by hooking into an enty save event and check if a maps fields has empty coords.