Skip to content

Commit 22be719

Browse files
committed
Register google as default geocoder for example app
since it doesn't require an API key
1 parent b9ece1a commit 22be719

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/Example.Web/Global.asax.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,15 @@ IContainer InitializeContainer()
3737
//http://developer.yahoo.com/boss/geo/BOSS_Signup.pdf
3838
builder.Register(c => new YahooGeocoder("my-yahoo-consumer-key", "my-yahoo-consumer-secret")).As<IGeocoder>();
3939

40+
builder.Register(c => new MapQuestGeocoder("mapquest-key") { UseOSM = true }).As<IGeocoder>();
41+
4042
//https://developers.google.com/maps/documentation/javascript/tutorial#api_key
4143
//a server key is optional with Google
4244
builder.Register(c => new GoogleGeocoder
4345
{
4446
//ApiKey = "google-api-key-is-optional"
4547
}).As<IGeocoder>();
4648

47-
builder.Register(c => new MapQuestGeocoder("mapquest-key") { UseOSM = true }).As<IGeocoder>();
48-
4949
return builder.Build();
5050
}
5151

0 commit comments

Comments
 (0)