Skip to content

Commit d90ff4c

Browse files
committed
Grammar improvements
1 parent 5b4eef7 commit d90ff4c

File tree

4 files changed

+42
-42
lines changed

4 files changed

+42
-42
lines changed

articles/azure-maps/how-to-dev-guide-csharp-sdk.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ services: azure-maps
1212

1313
# C# REST SDK Developers Guide
1414

15-
The Azure Maps C# SDK supports functionality available in the [Azure Maps Rest API][Rest API], like searching for an address, routing between different coordinates, and getting the geo-location of a specific IP address. This article introduces the C# REST SDK with examples to help you get started building location-aware applications in C# that incorporate the power of Azure Maps.
15+
The Azure Maps C# SDK supports functionality available in the [Azure Maps Rest API][Rest API], like searching for an address, routing between different coordinates, and getting the geo-location of a specific IP address. This article introduces the C# REST SDK with examples to help you get started building location-aware applications in C# that incorporates the power of Azure Maps.
1616

1717
> [!NOTE]
1818
> Azure Maps C# SDK supports any .NET version that is compatible with [.NET standard 2.0][.NET standard]. For an interactive table, see [.NET Standard versions][.NET Standard versions].
@@ -65,13 +65,13 @@ The client object used to access the Azure Maps Search APIs require either an `A
6565

6666
### Using an Azure AD credential
6767

68-
You can authenticate with Azure AD using the [Azure Identity library][Identity library .NET]. To use the [DefaultAzureCredential][defaultazurecredential.NET] provider, you'll need to install the Azure Identity client library for .NET:
68+
You can authenticate with Azure AD using the [Azure Identity library][Identity library .NET]. To use the [DefaultAzureCredential][defaultazurecredential.NET] provider, you need to install the Azure Identity client library for .NET:
6969

7070
```powershell
7171
dotnet add package Azure.Identity
7272
```
7373

74-
You'll need to register the new Azure AD application and grant access to Azure Maps by assigning the required role to your service principal. For more information, see [Host a daemon on non-Azure resources][Host daemon]. During this process you'll get an Application (client) ID, a Directory (tenant) ID, and a client secret. Copy these values and store them in a secure place. You'll need them in the following steps.
74+
You need to register the new Azure AD application and grant access to Azure Maps by assigning the required role to your service principal. For more information, see [Host a daemon on non-Azure resources][Host daemon]. The Application (client) ID, a Directory (tenant) ID, and a client secret are returned. Copy these values and store them in a secure place. You need them in the following steps.
7575

7676
Set the values of the Application (client) ID, Directory (tenant) ID, and client secret of your Azure AD application, and the map resource’s client ID as environment variables:
7777

@@ -105,7 +105,7 @@ var client = new MapsSearchClient(credential, clientId);
105105
```
106106

107107
> [!IMPORTANT]
108-
> The other environment variables created above, while not used in the code sample here, are required by `DefaultAzureCredential()`. If you do not set these environment variables correctly, using the same naming conventions, you will get run-time errors. For example, if your `AZURE_CLIENT_ID` is missing or invalid you will get an `InvalidAuthenticationTokenTenant` error.
108+
> The other environment variables created in the previous code snippet, while not used in the code sample, are required by `DefaultAzureCredential()`. If you do not set these environment variables correctly, using the same naming conventions, you will get run-time errors. For example, if your `AZURE_CLIENT_ID` is missing or invalid you will get an `InvalidAuthenticationTokenTenant` error.
109109
110110
### Using a subscription key credential
111111

@@ -167,7 +167,7 @@ foreach (var result in searchResult.Results)
167167
}
168168
```
169169

170-
The above code snippet demonstrates how to create a `MapsSearchClient` object using your Azure credentials, then uses its [FuzzySearch][FuzzySearch] method, passing in the point of interest (POI) name "_Starbucks_" and coordinates _GeoPosition(-122.31, 47.61)_. This all gets wrapped up by the SDK and sent to the Azure Maps REST endpoints. When the search results are returned, they're written out to the screen using `Console.WriteLine`.
170+
The above code snippet demonstrates how to create a `MapsSearchClient` object using your Azure credentials, then uses its [FuzzySearch][FuzzySearch] method, passing in the point of interest (POI) name "_Starbucks_" and coordinates _GeoPosition(-122.31, 47.61)_. The SDK packages and sends the results to the Azure Maps REST endpoints. When the search results are returned, they're written out to the screen using `Console.WriteLine`.
171171

172172
The following libraries are used:
173173

@@ -236,11 +236,11 @@ if (searchResult.Results.Count > 0)
236236
}
237237
```
238238

239-
Results returned by the `SearchAddress` method are ordered by confidence score and because `searchResult.Results.First()` is used, only the coordinates of the first result will be returned.
239+
The `SearchAddress` method returns results ordered by confidence score and since `searchResult.Results.First()` is used, only the coordinates of the first result is returned.
240240

241241
## Batch reverse search
242242

243-
Azure Maps Search also provides some batch query methods. These methods will return Long Running Operations (LRO) objects. The requests might not return all the results immediately, so users can choose to wait until completion or query the result periodically. The example below demonstrates how to call the batched reverse search methods:
243+
Azure Maps Search also provides some batch query methods. These methods return Long Running Operations (LRO) objects. The requests might not return all the results immediately, so users can choose to wait until completion or query the result periodically. The following example demonstrates how to call the batched reverse search methods:
244244

245245
```csharp
246246
var queries = new List<ReverseSearchAddressQuery>()
@@ -257,7 +257,7 @@ var queries = new List<ReverseSearchAddressQuery>()
257257
};
258258
```
259259

260-
In the above example, two queries are passed to the batched reverse search request. To get the LRO results, you have few options. The first option is to pass `WaitUntil.Completed` to the method. The request will wait until all requests are finished and return the results:
260+
In the above example, two queries are passed to the batched reverse search request. To get the LRO results, you have few options. The first option is to pass `WaitUntil.Completed` to the method. The request waits until all requests are finished and return the results:
261261

262262
```csharp
263263
// Wait until the LRO return batch results
@@ -267,7 +267,7 @@ Response<ReverseSearchAddressBatchOperation> waitUntilCompletedResults = client.
267267
printReverseBatchAddresses(waitUntilCompletedResults.Value);
268268
```
269269

270-
Another option is to pass `WaitUntil.Started`. The request will return immediately, and you'll need to manually poll the results:
270+
Another option is to pass `WaitUntil.Started`. The request returns immediately, and you need to manually poll the results:
271271

272272
```csharp
273273
// Manual polling the batch results
@@ -291,7 +291,7 @@ Response<ReverseSearchAddressBatchOperation> manualPollingResult = manualPolling
291291
printReverseBatchAddresses(manualPollingResult.Value);
292292
```
293293

294-
The third method requires the operation ID to get the results, which will be cached on the server side for 14 days:
294+
The third method requires the operation ID to get the results, which is cached on the server side for 14 days:
295295

296296
```csharp
297297
ReverseSearchAddressBatchOperation longRunningOperation = client.ReverseSearchAddressBatch(WaitUntil.Started, queries);

articles/azure-maps/how-to-dev-guide-java-sdk.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ The Azure Maps Java SDK can be integrated with Java applications and libraries t
3333
3434
## Create a Maven project
3535
36-
The following PowerShell code snippet demonstrates how to use PowerShell to create a maven project. First we'll run maven command to create maven project:
36+
The following PowerShell code snippet demonstrates how to use PowerShell to create a maven project. First, run the maven command to create a maven project:
3737
3838
```powershell
3939
mvn archetype:generate "-DgroupId=groupId" "-DartifactId=DemoProject" "-DarchetypeArtifactId=maven-archetype-quickstart" "-DarchetypeVersion=1.4" "-DinteractiveMode=false" 
@@ -42,15 +42,15 @@ mvn archetype:generate "-DgroupId=groupId" "-DartifactId=DemoProject" "-Darchety
4242
| Parameter | Description |
4343
|-------------|--------------------------------------------------------------|
4444
| `-DGroupId` | Group ID uniquely identifies your project across all projects|
45-
| `-DartifactId` | Project name. It will be created as a new folder. |
45+
| `-DartifactId` | Project name. It's created as a new folder. |
4646
| `-DarchetypeArtifactId` | project type. `maven-archetype-quickstart` results in a sample project. |
4747
| `-DinteractiveMode` | Setting to `false` results in a blank Java project with default options. |
4848

4949
### Install the packages
5050

51-
To use the Azure Maps Java SDK, you will need to install all required packages. Each service in Azure Maps is available in its own package. Services include Search, Render, Traffic, Weather, etc. You only need to install the packages for the service or services you will be using in your project.
51+
To use the Azure Maps Java SDK, you need to install all required packages. Each service in Azure Maps is available in its own package. The Azure Maps services include Search, Render, Traffic, Weather, etc. You only need to install the packages for the service or services used in your project.
5252

53-
After creating the maven project, there should be a `pom.xml` file with basic information such as group ID, name, artifact ID. This is where you will add a dependency for each of the Azure Maps services, as shown below:
53+
Once the maven project is created, there should be a `pom.xml` file with basic information such as group ID, name, artifact ID. Next, add a dependency for each of the Azure Maps services, as the following example demonstrates:
5454

5555
```xml
5656
<dependency
@@ -117,7 +117,7 @@ The client object used to access the Azure Maps Search APIs require either an `A
117117

118118
### Using an Azure AD credential
119119

120-
You can authenticate with Azure AD using the [Azure Identity library][Identity library]. To use the [DefaultAzureCredential] provider, you'll need to add the mvn dependency in the `pom.xml` file:
120+
You can authenticate with Azure AD using the [Azure Identity library][Identity library]. To use the [DefaultAzureCredential] provider, you need to add the mvn dependency in the `pom.xml` file:
121121

122122
```xml
123123
<dependency>
@@ -126,7 +126,7 @@ You can authenticate with Azure AD using the [Azure Identity library][Identity l
126126
</dependency>
127127
```
128128

129-
You'll need to register the new Azure AD application and grant access to Azure Maps by assigning the required role to your service principal. For more information, see [Host a daemon on non-Azure resources][Host daemon]. During this process you'll get an Application (client) ID, a Directory (tenant) ID, and a client secret. Copy these values and store them in a secure place. You'll need them in the following steps.
129+
You need to register the new Azure AD application and grant access to Azure Maps by assigning the required role to your service principal. For more information, see [Host a daemon on non-Azure resources][Host daemon]. The Application (client) ID, a Directory (tenant) ID, and a client secret are returned. Copy these values and store them in a secure place. You need them in the following steps.
130130

131131
Set the values of the Application (client) ID, Directory (tenant) ID, and client secret of your Azure AD application, and the map resource's client ID as environment variables:
132132

@@ -166,7 +166,7 @@ public class Demo {
166166
```
167167

168168
> [!IMPORTANT]
169-
> The other environment variables created above, while not used in the code sample here, are required by `DefaultAzureCredential()`. If you do not set these environment variables correctly, using the same naming conventions, you will get run-time errors. For example, if your `AZURE_CLIENT_ID` is missing or invalid you will get an `InvalidAuthenticationTokenTenant` error.
169+
> The other environment variables created in the previous code snippet, while not used in the code sample, are required by are required by `DefaultAzureCredential()`. If you do not set these environment variables correctly, using the same naming conventions, you will get run-time errors. For example, if your `AZURE_CLIENT_ID` is missing or invalid you will get an `InvalidAuthenticationTokenTenant` error.
170170
171171
### Using a subscription key credential
172172

@@ -345,7 +345,7 @@ In this sample, the `client.SearchAddress` method returns results ordered by con
345345

346346
## Batch reverse search
347347

348-
Azure Maps Search also provides some batch query methods. These methods will return Long Running Operations (LRO) objects. The requests might not return all the results immediately, so users can choose to wait until completion or query the result periodically as demonstrated in the batch reverse search method:
348+
Azure Maps Search also provides some batch query methods. These methods return Long Running Operations (LRO) objects. The requests might not return all the results immediately, so users can choose to wait until completion or query the result periodically as demonstrated in the batch reverse search method:
349349

350350
```java
351351
import java.util.ArrayList;

0 commit comments

Comments
 (0)