Data not saved correctly/not triggering GEO service when importing via feedme
Description
Read carefully, this issue is not like the other open issues about feedme+maps I have 142 addresses but it seems to not work in certain conditions.
Steps to reproduce
- Install feed me + maps
- Add the maps field to an entry
- Configure your google maps with geocode API
- Set up an feed me import with addresses in JSON format like this
[{"Account":"XXXXXXX","Street":"XXXXXX","Number":"XXXX","Postcode":"XXXX","City":"XXXX"}]
Additional info
The data i'm using are the following fields: Number, Street Address, City, Postcode, Country. Now when saving most of my 142 it is saving correctly like I would expect it to. But there are 20 addresses which are NOT saved correctly. Now, the weird thing is, when opening these entries it shows no data what so ever in the fields named before, but when access them front end like {{ entry.location.postcode }} it is showing me the correct data. So, the data is there. but with a lot of data missing like: lat, lng, etc. I've tried to resave all entries with ./craft resave/entries but with no success.
I've tried to delete and reimport all data, it's always the same 20 entries not setting the location correctly.
When filling the fields in the CP it's working just fine with the data copy pasted into the fields.
- Craft version: Craft Pro 3.6.17
- Maps version: 3.9.1
- PHP version: 7.4.16
- Database driver & version: MySQL 5.7.33
- Other Plugins: craftcms/feed-me
@kevinmu17 Would you be able to share any of the addresses that aren't working? (feel free to email dev [at] ethercreative.co.uk if you'd rather not share here)
Is it possible those addresses aren't in Google's geocoding database? That could be why the data is technically in the database, but Maps is unable to show it in the control panel field.
Email send with the data
Is it possible those addresses aren't in Google's geocoding database?
Is there a way to check this? when using https://maps.googleapis.com/maps/api/geocode/json?address=ADDRESS&key=API-KEY I am getting a full response back with every information needed.
@kevinmu17 Appreciate a long time ago, but did you work out a way to patch up the missing data, as we have just run into this?
@samhibberd still waiting for a reply on my email, we didn't managed to get it to work for 100% so we manually entered the missing addresses which was far from ideal
Ah. Probably not an option for us with hundreds of entries. Will keep digging. Thanks for letting me know.