Quantcast
Channel: MATLAB Central Newsreader - tag:"urlread"
Viewing all articles
Browse latest Browse all 16

Promblem with 'urlread' and 'google map api', pls help me!

$
0
0
% MY AIM IS: to transform location/address to Latitude and Longitude by
% GOOGLE MAP API.

clc; clear;
KEY='ABQIAAAA7VerLsOcLuBYXR7vZI2NjhTRERdeAiwZ9EeJWta3L_JZVS0bOBRIFbhTrQjhHE52fqjZvfabYYyn6A';
loc0 = '??'; loc1 = 'Shanghai';
url0 =['http://maps.googleapis.com/maps/geo?q=' loc0 '&output=json&sensor=true_or_false&hl=zh-CN&key=' KEY '&region=GB'];
[str2] = urlreadv(url0); % line (1)
% web(url0, '-browser') % line (2)

% MY PROBLEM IS: The result of line(1) differ from line(2);
% Please help me on this issue?

Viewing all articles
Browse latest Browse all 16

Trending Articles