diff --git a/services/cognitiveservices/v1.0/localsearch/client.go b/services/cognitiveservices/v1.0/localsearch/client.go index b23863673898..13b2c0290c80 100644 --- a/services/cognitiveservices/v1.0/localsearch/client.go +++ b/services/cognitiveservices/v1.0/localsearch/client.go @@ -28,7 +28,7 @@ import ( const ( // DefaultBaseURI is the default URI used for the service Localsearch - DefaultBaseURI = "https://api.cognitive.microsoft.com/localbusinesses/v7.0/search" + DefaultBaseURI = "https://api.cognitive.microsoft.com/bing" ) // BaseClient is the base client for Localsearch. diff --git a/services/cognitiveservices/v1.0/localsearch/local.go b/services/cognitiveservices/v1.0/localsearch/local.go index eac55bbe6914..667c0df99d1b 100644 --- a/services/cognitiveservices/v1.0/localsearch/local.go +++ b/services/cognitiveservices/v1.0/localsearch/local.go @@ -226,7 +226,7 @@ func (client LocalClient) SearchPreparer(ctx context.Context, query string, acce preparer := autorest.CreatePreparer( autorest.AsGet(), autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/localbusinesses/v7.0/search"), + autorest.WithPath("/v7.0/localbusinesses/search"), autorest.WithQueryParameters(queryParameters), autorest.WithHeader("X-BingApis-SDK", "true")) if len(acceptLanguage) > 0 {