R
R
romanevg0012017-03-08 11:43:21
Google Maps
romanevg001, 2017-03-08 11:43:21

Why does Google api return an error with status 200?

$.ajax({
            url: 'https://maps.googleapis.com/maps/api/elevation/json?locations=39.7391536,-104.9847034', 
            type: "GET",   
            dataType: 'jsonp',
            cache: false,
                  
        }).then(function(response){                          
                console.log(response);                   
            },
            function(er){
                console.log('error')
                console.log(er)
            });

Returns:
error
Object {readyState: 4, status: 200, statusText: "load"}

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dimonchik, 2017-03-08
@dimonchik2013

well, status 200 is the status of the server response, not logic

F
freeExec, 2017-03-09
@freeExec

JSONP is not supported.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question