Add listing address issue

This topic contains 3 replies, has 3 voices, and was last updated by  Paolo 6 years, 11 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #429231

    Thierry BOULOGNE
    Free User
    Post count: 3

    Hello,

    I face something strange.
    I try to add a listing with this address :
    rue du printemps, montendre

    Where Montendre is the city.
    I get this :
    http://prntscr.com/je5pp3

    And into the city field, i get another city (Jonzac). This one, near the previous (Montendre).

    I change the city field to Montendre (toi i search). Then i save.
    The profile page show Jonzac !

    Anyway to improve autocomplete address ?

    Thanks for your help.

    Regard

    #429245

    Guust
    Moderator
    Post count: 29970

    The autocomplete is provided by Google, there is little we can do about that.
    But when I try it on my test site, it works fine, see images.
    Please post your URL and WP admin details in a private reply if we need to check your settings.
    Thanks

    #429292

    Thierry BOULOGNE
    Free User
    Post count: 3

    Hello,

    Thanks for your answer. I forget to say, i use openstreetmaps ;-(.

    i’m trying some refactoring on js code to make it work (on_document_load.js)

    
    
    
    if (data[0].address.village != undefined && data[0].address.city == undefined) {
                                data[0].address.city = data[0].address.village ;
                            }
    
                            if (data[0].address.city == undefined && data[0].address.county != undefined) {
                                data[0].address.city = data[0].address.county ;
                            }
    
                            //data[0].display_name =  data[0].address.city
                            if(data[0].address.city_district != undefined){
                                city = data[0].address.city_district
                            }else{
                                city = data[0].address.city
                            }
    
                            if (data[0].address.house_number != undefined) {
                                
                                data[0].display_name = data[0].address.house_number + ", " + data[0].address.road +  " - " + city;
                            }else{
                                data[0].display_name = data[0].address.road + " - " +  city ;
                            }
    

    Any tip is welcome.

    regards

    #429412

    Paolo
    Site Admin
    Post count: 31211
    This reply has been marked as private.
Viewing 4 posts - 1 through 4 (of 4 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount