Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When i use Mapquest geocode i got an error. #48

Closed
tvrajja opened this issue Mar 6, 2016 · 3 comments
Closed

When i use Mapquest geocode i got an error. #48

tvrajja opened this issue Mar 6, 2016 · 3 comments

Comments

@tvrajja
Copy link

tvrajja commented Mar 6, 2016

When i use Mapquest geocode i got an error.
In Example.Web
global.asax.cs after GoogleGeocoder i have added the below MapQuestGeocoder
builder.Register(c => new MapQuestGeocoder("KEY") { UseOSM = true }).As();

Homecontroller:
var addresses = geoCoder.Geocode(address).ToArray();
return View("Index", addresses);
{"[POST] http://open.mapquestapi.com/geocoding/v1/address?key=MYKEY | EXPECTATION_FAILED | "}

@spoloha11
Copy link

I encountered the same error. As a work around, in Mapquest -> MapquestGeocoder.cs, put the following line above the return statement in Send().

request.ServicePoint.Expect100Continue = false;

@chadly
Copy link
Owner

chadly commented Apr 1, 2016

Thanks for the workaround @spoloha11. See also #29.

@chadly
Copy link
Owner

chadly commented Oct 18, 2016

Unable to reproduce. See #68.

@chadly chadly closed this as completed Oct 18, 2016
adamhathcock added a commit to adamhathcock/Geocoding.net that referenced this issue Dec 13, 2016
* master:
  Don't include test project in ilmerged output
  Register google as default geocoder for example app
  Update .gitignore for VS 2015
  Updating readme mapquest issues
  Upgrade Geocoding.Net in Example.sln. Can't reproduce chadly#45 and chadly#48. They are already fixed by commit ecc8cf6
  Split tests for special characters and Street intersections (by ampersand)
  Test MapQuest Commercial API
  Implemented Google Geocoding channel feature (chadly#63)
  Bump version
  Add Google component filters for administrative areas, postal codes and countries (chadly#60)
  Adding Mixed SideOfStreet to MapQuest
  Bump minor version ahead of release
  Fixing space formatting
  Minor change
  Added place_id to GoogleAddress (chadly#52)
  update example output to match current return (chadly#54)

# Conflicts:
#	Google/Google.csproj
#	Tests/MapQuestBatchGeocoderTest.cs
#	geocoding.nuspec
#	src/Geocoding.Google/GoogleGeocoder.cs
#	teamcity.targets
#	test/Geocoding.Tests/GoogleGeocoderTest.cs
#	test/Geocoding.Tests/MapQuestGeocoderTest.cs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants