Forums › Xprofile Fields › Values not being stored correctly
- This topic has 3 replies, 2 voices, and was last updated 5 years, 8 months ago by
Robin.
-
AuthorPosts
-
September 5, 2016 at 1:04 am #54000
Robin
MemberHi
I seem to have an issue here. I have xprofile fields setup as follows:
‘City’ mapped to an input field of ‘City/District/Town’
‘State’ mapped to an input field of ‘County/State’
‘Country’ mapped to an input field of ‘Country’I find the values are being saved incorrectly. For example, I enter the address in Buddypress as being:
‘City/District/Town’ = Hastings
‘County/State’ = East Sussex
‘Country’ = EnglandWhen I save the values have been changed to:
‘City/District/Town’ = Hastings
‘County/State’ = England
‘Country’ = GBAny ideas?! This is really annoying as the address is not being stored as accurately as it should be and it just looks wrong on my member profiles.
Many thanks
September 8, 2016 at 3:19 am #54016Robin
MemberHi
Jus to say after some more testing I don’t think this is a bug.
I am guessing it is google updating the address?I googled and there are two Hastings in the USA. When I enter:
‘City/District/Town’ = Hastings
‘County/State’ = Nebraska
‘Country’ = USA
It is saved correctly and the map updated.When I enter:
‘City/District/Town’ = Hastings
‘County/State’ = Michigan
‘Country’ = USA
It is saved correctly and the map updated.I guess it is because google does not need the county/state for Hastings in the England as there must only be one, so it replaces the value of East Sussex with England.
This is annoying as users can’t now search their county for members, but I guess it can’t be helped/ changed?
September 8, 2016 at 2:36 pm #54029Eyal Fitoussi
MemberHello Robin,
I apologize for missing out your initial post.You are correct, when member updates his location Google geocodes the address and return the “proper” address fields which sometimes might be slightly different than what you entered. However, assuming that you are referring to GEO my WP search forms, members should still be able to search for other members based on a county, even if the county name does not exist in the address of a member. The search is done based on coordinates and not the actually address field. So, if one searches for members based on the address “Hastings, East Sussex”, for example, he should see your member profile in the results even if the value “East Sussex” does not exist in the address of your member.
Does that makes sense?
September 16, 2016 at 3:33 am #54140Robin
MemberResolving
-
AuthorPosts
You must be logged in to reply to this topic.