{"id":597,"date":"2017-11-02T17:44:10","date_gmt":"2017-11-02T10:44:10","guid":{"rendered":"https:\/\/www.suzukimotosales.co.th\/?page_id=597"},"modified":"2021-08-06T15:09:31","modified_gmt":"2021-08-06T08:09:31","slug":"find-a-dealer","status":"publish","type":"page","link":"https:\/\/www.suzukimotosales.co.th\/en\/find-a-dealer\/","title":{"rendered":"Find Dealer"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"597\" class=\"elementor elementor-597 elementor-1722\" data-elementor-settings=\"[]\">\n\t\t\t\t\t\t\t<div class=\"elementor-section-wrap\">\n\t\t\t\t\t\t\t<section class=\"has_ae_slider elementor-section elementor-top-section elementor-element elementor-element-umxom0n elementor-section-stretched elementor-section-full_width elementor-section-height-default elementor-section-height-default\" data-id=\"umxom0n\" data-element_type=\"section\" data-settings=\"{&quot;stretch_section&quot;:&quot;section-stretched&quot;}\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-no\">\n\t\t\t\t\t<div class=\"has_ae_slider elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-g628vi0\" data-id=\"g628vi0\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-element elementor-element-nqc3tfl elementor-widget elementor-widget-hello-world\" data-id=\"nqc3tfl\" data-element_type=\"widget\" data-widget_type=\"hello-world.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<div class=\"address\"><\/div><div class=\"storesradius\"><\/div>\n    <script>\n        var store_locator_map_options  =  {\"enable\":\"1\",\"width\":\"100\",\"widthunit\":\"%\",\"height\":\"550\",\"heightunit\":\"px\",\"type\":\"Roadmap\",\"unit\":\"km\",\"radius\":\"5,10,[25],50,100,200,500\",\"category\":\"1\",\"tag\":\"1\",\"streetViewControl\":\"0\",\"mapTypeControl\":\"0\",\"scroll\":\"1\",\"default_search\":\"1\",\"map_window_open\":\"1\",\"rtl_enabled\":\"1\",\"map_style\":\"2\",\"listing_position\":\"left\",\"marker1\":\"https:\\\/\\\/www.suzukimotosales.co.th\\\/wp-content\\\/plugins\\\/wp-multi-store-locator-pro\\\/assets\\\/img\\\/red.png\",\"marker1_custom\":\"\",\"marker2\":\"https:\\\/\\\/www.suzukimotosales.co.th\\\/wp-content\\\/plugins\\\/wp-multi-store-locator-pro\\\/assets\\\/img\\\/blue.png\",\"marker2_custom\":\"\",\"infowindow\":\"<div><div>{image}<\\\/div><h3>{name}<\\\/h3><p>{address} {city}, {state} {country} {zipcode}<\\\/p><span>{phone}<\\\/span><span>{website}<\\\/span><div>\",\"custom_style\":\"\"};\n        var store_locator_grid_options =  {\"enable\":\"1\",\"number\":\"10\",\"scroll\":\"1\",\"columns\":[\"name\",\"address\",\"website\"],\"view\":\"card\"};\n\n       if (navigator.geolocation) {\n        navigator.geolocation.getCurrentPosition(function (position) {\n            var pos = {\n                lat: position.coords.latitude,\n                lng: position.coords.longitude\n            };\n\n            var geocoder = new google.maps.Geocoder;\n            geocoder.geocode({\n                'location': pos\n            }, function (results, status) {\n                if (status === google.maps.GeocoderStatus.OK) {\n                    if (results[0]) {\n                        jQuery('#store_locatore_search_inputmap').val(results[0].formatted_address);\n                                                var laddress = results[0].formatted_address;\n                        \n                    setTimeout(function() {\n                        wpmsl_update_map(laddress,'25');\n                        jQuery('#store_locatore_search_input').val(laddress);\n                        jQuery('#store_locatore_search_radius option[value=\"25\"]').prop('selected', true);\n                        if (jQuery.fn.niceSelect) {\n                            jQuery('#store_locatore_search_radius').niceSelect('update');\n                        }\n                    },2000);\n\n                        \/\/ jQuery('#store_locatore_search_lat').val(pos.lat);\n                        \/\/ jQuery('#store_locatore_search_lng').val(pos.lng);\n                    }\n                }\n            });\n        }, function () {\n                \/\/jQuery('#store_locatore_map').hide();\n                setTimeout(function() {\n                                            var laddress2 = 'Bangkok,Thailand ';\n                        \n                    wpmsl_update_map(laddress2,'25');\n                    jQuery('#store_locatore_search_input').val(laddress2);\n\n                    jQuery('#store_locatore_search_radius option[value=\"25\"]').prop('selected', true);\n                    if (jQuery.fn.niceSelect) {\n                        jQuery('#store_locatore_search_radius').niceSelect('update');\n                    }\n                },2000);\n    });\n\n    }\n\n        \/\/alert(laddress);\n\nif (window.parent.location.href.match(\/locatore_search_input=\/)){\n    if (typeof (history.pushState) != \"undefined\") {\n        var obj = { Title: document.title, Url: window.parent.location.pathname };\n        history.pushState(obj, obj.Title, obj.Url);\n    } else {\n        window.parent.location = window.parent.location.pathname;\n    }\n}\n\n\n\n          <\/script>\n\n    <script type='text\/javascript' src='https:\/\/www.suzukimotosales.co.th\/wp-content\/plugins\/wp-multi-store-locator-pro\/\/assets\/js\/frontend_script.js'><\/script>\n    <script type='text\/javascript' src='https:\/\/www.suzukimotosales.co.th\/wp-content\/plugins\/wp-multi-store-locator-pro\/\/assets\/js\/bootstrap-modal.js'><\/script>\n    <script type=\"text\/javascript\" src=\"\/\/rawgit.com\/googlemaps\/v3-utility-library\/master\/infobox\/src\/infobox.js\"><\/script>\n    <link rel='stylesheet' href='https:\/\/www.suzukimotosales.co.th\/wp-content\/plugins\/wp-multi-store-locator-pro\/\/assets\/css\/bootstrap-modal.css'>\n\n\t\n    <div class=\"row ob_stor-relocator\" id=\"store-locator-id\" style=\"height:550px;width:100%;\">\n\n        \n        <div class=\"loader\"><div>\n\n                                    <div class=\"col-left leftsidebar slide-left left-skip\">\n\n                                                <div class=\"search-options-btn\">Search Options<\/div>\n\n                                                <div class=\"store-search-fields show\">\n                            <form id=\"store_locator_search_form\" >\n                                <input id=\"store_locatore_get_btn\" class=\"\"  type=\"button\" value=\"Get my location\"    \/>\n\n                                <input id=\"store_locatore_search_input\"  class=\"wpsl_search_input \" name=\"store_locatore_search_input\" type=\"text\" placeholder=\"Enter Location\">\n                                <input id=\"store_locatore_search_lat\" name=\"store_locatore_search_lat\" type=\"hidden\" >\n                                <input id=\"store_locatore_search_lng\" name=\"store_locatore_search_lng\" type=\"hidden\" >\n                                <div>\n                                                                            <select id=\"store_locatore_search_radius\" name=\"store_locatore_search_radius\" class=\"wpsl_search_radius \">\n                                                                                                                                            <option value=\"5\"  >5 km<\/option>\n                                                                                                                                            <option value=\"10\"  >10 km<\/option>\n                                                                                                                                            <option value=\"25\" selected >25 km<\/option>\n                                                                                                                                            <option value=\"50\"  >50 km<\/option>\n                                                                                                                                            <option value=\"100\"  >100 km<\/option>\n                                                                                                                                            <option value=\"200\"  >200 km<\/option>\n                                                                                                                                            <option value=\"500\"  >500 km<\/option>\n                                                                                    <\/select>\n                                    \n                                                                            <select name=\"store_locator_category\" id=\"wpsl_store_locator_category\" class=\"wpsl_locator_category \">\n                                            <option value=\"\"> Select Category <\/option>\n                                                                                            <option value=\"141\"> BIG BIKE <\/option>\n                                                                                            <option value=\"142\"> MOTORCYCLE <\/option>\n                                                                                    <\/select>\n                                    \n                                                                            <select placeholder=\"Select Tags\" name=\"store_locator_tag[]\" class=\"wpsl_locator_category \" id=\"store_locator_tag\" multiple=\"multiple\">\n                                                                                            <option value=\"400\"> Service<\/option>\n                                                                                            <option value=\"399\"> Shop<\/option>\n                                                                                            <option value=\"401\"> Spare part<\/option>\n                                                                                    <\/select>\n                                                                    <\/div>\n                                <input id=\"store_locatore_search_btn\" type=\"submit\" value=\"Search\" \/>\n                            <\/form>\n                        <\/div>\n\n                    <\/div>\n                                <div class=\"col-right right-sidebar\">\n                    <div id=\"map-container\" style=\"position: relative;width: 100%;right: 0%;\" class=\"left\">\n                        <div id=\"map_loader\" style=\"display:none;z-index: 9;height: 550px;width: 100%;position: absolute;\"><div class=\"uil-ripple-css\" style=\"transform: scale(0.6); margin-left: auto; margin-right: auto;\"><div><\/div><div><\/div><\/div><\/div>\n                        <div id=\"store_locatore_search_results\"><\/div>\n                    <\/div>\n                    \t\t\t\t\t\t<div class=\"map-listings left\" style=\"height: 550px\">\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t                    <div class=\"show-more\">Show More<\/div>\n\n                <\/div>\n\n            <\/div>\n\n            <script>\n                \/\/ adding class in content div\n                jQuery( \".ob_stor-relocator\" ).addClass( \"full_width_div\" );\n                jQuery( \".ob_stor-relocator\" ).addClass( \"full_width_div\" );\n                jQuery( \".loader\" ).append( '<img class=\"load-img\" src=\"https:\/\/www.suzukimotosales.co.th\/wp-content\/plugins\/wp-multi-store-locator-pro\/assets\/img\/loader.gif\" width=\"100\" height=\"100\" >' );\n\n                jQuery( \".ob_stor-relocator\" ).append( '<div class=\"overlay-store\"><\/div>' );\n\n                jQuery(document).ready(function () {\n                    jQuery( \".closesidebar\" ).click(function() {\n                        jQuery( '.leftsidebar' ).toggleClass( \"slide-left\" );\n                        jQuery( this ).toggleClass( \"arrow_right\" );\n                    });\n                });\n            <\/script>\n        <\/div><\/div>\n    \t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>\u0e15\u0e31\u0e27\u0e40\u0e25\u0e37\u0e2d\u0e01\u0e01\u0e32\u0e23\u0e04\u0e49\u0e19\u0e2b\u0e32 5 km10 km25 km50 km100 km200 km500 km \u0e40\u0e25\u0e37\u0e2d\u0e01\u0e2b\u0e21\u0e27\u0e14\u0e2b\u0e21\u0e39\u0e48 BIG BIKE MOTORCYCLE Service Shop [&hellip;]<\/p>\n","protected":false},"author":9,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":[],"_links":{"self":[{"href":"https:\/\/www.suzukimotosales.co.th\/en\/wp-json\/wp\/v2\/pages\/597"}],"collection":[{"href":"https:\/\/www.suzukimotosales.co.th\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.suzukimotosales.co.th\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.suzukimotosales.co.th\/en\/wp-json\/wp\/v2\/users\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/www.suzukimotosales.co.th\/en\/wp-json\/wp\/v2\/comments?post=597"}],"version-history":[{"count":1,"href":"https:\/\/www.suzukimotosales.co.th\/en\/wp-json\/wp\/v2\/pages\/597\/revisions"}],"predecessor-version":[{"id":62978,"href":"https:\/\/www.suzukimotosales.co.th\/en\/wp-json\/wp\/v2\/pages\/597\/revisions\/62978"}],"wp:attachment":[{"href":"https:\/\/www.suzukimotosales.co.th\/en\/wp-json\/wp\/v2\/media?parent=597"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}