NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

hello,

i got a problem similar to https://help.openstreetmap.org/questions/722/why-does-nominatim-return-an-error-for-queries-from-internet-explorer

that is my call to nominatim: Suche Flughafen Hamburg in Firefox i can read the answer in standard tab. In InternetExplorer i also receive the same result (after having a detail look with a debug tool)

But calling that link inside a webpage wih jquery... in Firefox anything is fine.

  $.ajax({
      url: url,
      type : "GET",
      success: function(result){
         alert("success");
      },
      error: function(err) {
        alert("error");
    } 
});

Using the internet explorer debugger the code runs to the error section. Without giving me useful information. it feels the URL isnt called.

Any ideas, what the problem is?

am using jquery-1.7.2 and jquery-ui-1.8.22

thanks

asked 19 Dec '12, 15:43

Cortadillo's gravatar image

Cortadillo
11112
accept rate: 0%

I would suggest that using InternetExplorer is the problem. ;-) ... it was in the question you've linked to.

(19 Dec '12, 16:00) aseerel4c26 ♦

Have you checked your encoding as suggested in the question you linked to? Try searching for something without any special characters in it like 'london' and see if that works. If it does it would suggest an encoding problem - follow the advice from https://help.openstreetmap.org/questions/722/why-does-nominatim-return-an-error-for-queries-from-internet-explorer.

Alternatively can you try using format=jsonv2 instead. The v2 format was introduced to fix a problem with a conflict between the property 'class' used in the original json format.

http://nominatim.openstreetmap.org/search?q=flughafen%2Chamburg%2CDE&format=jsonv2&addressdetails=0&limit=1

If neither of these are the cause you will need to use the debugger to view the actual response comming back from the nominatim server. You could also try replacing alert("error"); with alert(err); to hopefully get some useful information.

permanent link

answered 19 Dec '12, 15:57

twain's gravatar image

twain
2.4k2538
accept rate: 40%

edited 19 Dec '12, 16:01

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×689
×4
×4
×3

question asked: 19 Dec '12, 15:43

question was seen: 3,329 times

last updated: 19 Dec '12, 16:01

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum