Open Triskh opened 3 months ago
I don't think we use this particular method, but we do use the GetPositionByKeywords method. And I think we're having the same problem. Debugging session shows that a web request to get the location information from the keywords, returns a 403 Forbidden. Hopefully this will be fixed soon!
Same here on GetPositionByKeywords using OpenStreetMap. Does anyone know a workaround?
Error seems to appear on request to hhtps://nominatim.openstreetmap.org/search... I Fixed it by doing the request myself in helperclass to get the coordinates of an address or searchstring.
Solution looks like this: `private static HttpClient _client;
static MapHelper()
{
_client = new HttpClient()
{
BaseAddress = new Uri("https://nominatim.openstreetmap.org/"),
};
_client.DefaultRequestHeaders.Add("User-Agent", "
public static async Task
Without setting UserAgent header the request will result in 403 forbidden.
Hope it helps.
A Fix of this issue would be really nice anyways
Can confirm jonas' solution worked for us too. Thank you for sharing your solution! Shame it has to come to manual workarounds, hopefully they will fix it on their side soon.
I have an programm that set's the map position with keywords, but since a few days this doesn't work anymore. The map itself works normaly and the position can be set with coordinates. As mapprovider i use openstreetmap.
Has anyone the same problem or has anyone an idea to fix this problem?