Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Suggested answer

PCF control for auto address completion using bing map search by zipcode

Posted on by 55

I want to search it by postal/zip code but not able to find find module which includes zip code

 Microsoft.Maps.loadModule('Microsoft.Maps.AutoSuggest', {
                    callback: () => {
                        //show Maximum results Limits and country code
                        var options = { maxResults: 10, countryCode: countryCodeValue };
                        var manager = new Microsoft.Maps.AutosuggestManager(options);
                        //manager.attachAutosuggest(`#searchBox-${this.uniqueId}`, `#searchBoxContainer-${this.uniqueId}`, (suggestionResult) => {
                        manager.attachAutosuggest('#searchBox-' + _this.uniqueId, '#searchBoxContainer-' + _this.uniqueId, (suggestionResult) => {
                            _this.street = suggestionResult.address.addressLine;
                            _this.city = suggestionResult.address.locality;
                            //this.county = suggestionResult.address.district;
                            _this.state = suggestionResult.address.adminDistrict;
                            _this.country = suggestionResult.address.countryRegion;
                            _this.zipcode = suggestionResult.address.postalCode;
                            _this.value = suggestionResult.formattedSuggestion || "";
                            _this.notifyOutputChanged();
                        });
                    },
                    errorCallback: () => { alert("error!!"); }
                });
  • Priyanka Maru Profile Picture
    Priyanka Maru 55 on at
    RE: PCF control for auto address completion using bing map search by zipcode

    I want my PCF control to suggest me address of only those location which zipcode I have entered in "search by zipcode" field

  • Suggested answer
    Abdul Wahab Profile Picture
    Abdul Wahab 12,070 Super User 2024 Season 1 on at
    RE: PCF control for auto address completion using bing map search by zipcode

    Hi Priyanka Maru

    You should need to elaborate more.

    Thanks
    Regards,

    Abdul Wahab
    Power Platform & Customer Engagement Developer/Lead/Solution Architecture/Project Manager
    Direct/WhatsApp:+923323281237
    E-mail: abdulwahabubit@outlook.com
    Skype: abdul.wahabubit
    Linkedin: www.linkedin.com/.../

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans