Javascript 我如何检索这个的Lat和Long值?

Javascript 我如何检索这个的Lat和Long值?,javascript,dictionary,parse-platform,Javascript,Dictionary,Parse Platform,我正在开发一个iOS应用程序,但我正在使用parse.com SDK。他们有一种叫做云代码的东西,我正在尝试使用它,但我对它的JS一无所知。我需要每个事件的lat和long值,但响应是字符串而不是字典 Parse.Cloud.define("findEvents", function(request, response) { var url = ("movie", request.params.movie); Par

我正在开发一个iOS应用程序,但我正在使用parse.com SDK。他们有一种叫做云代码的东西,我正在尝试使用它,但我对它的JS一无所知。我需要每个事件的lat和long值,但响应是字符串而不是字典

Parse.Cloud.define("findEvents", function(request, response) {

                   var url = ("movie", request.params.movie);

                   Parse.Cloud.httpRequest({
                                           url: url,
                                           success: function(httpResponse) {
                                                console.log(httpResponse.text);

                                           var s = httpResponse.text;


                                                response.success(s);
                                           },
                                           error: function(httpResponse) {
                                                console.error('Request failed with response code ' + httpResponse.status);
                                                response.error(httpResponse.text);
                                           }
                    });
});
这就是答案

{
events =     {
    event =         (
                    {
            "all_day" = 0;
            "calendar_count" = "<null>";
            calendars = "<null>";
            "city_name" = "Daytona Beach";
            "comment_count" = "<null>";
            "country_abbr" = USA;
            "country_abbr2" = US;
            "country_name" = "United States";
            created = "2013-10-09 07:16:07";
            description = "<null>";
            "geocode_type" = "EVDB Geocoder";
            going = "<null>";
            "going_count" = "<null>";
            groups = "<null>";
            id = "E0-001-062216029-9";
            image =                 {
                caption = "<null>";
                height = 48;
                medium =                     {
                    height = 128;
                    url = "http://s4.evcdn.com/images/medium/I0-001/003/062/707-0.jpeg_/gregg-allman-07.jpeg";
                    width = 128;
                };
                small =                     {
                    height = 48;
                    url = "http://s4.evcdn.com/images/small/I0-001/003/062/707-0.jpeg_/gregg-allman-07.jpeg";
                    width = 48;
                };
                thumb =                     {
                    height = 48;
                    url = "http://s4.evcdn.com/images/thumb/I0-001/003/062/707-0.jpeg_/gregg-allman-07.jpeg";
                    width = 48;
                };
                url = "http://s4.evcdn.com/images/small/I0-001/003/062/707-0.jpeg_/gregg-allman-07.jpeg";
                width = 48;
            };
            latitude = "29.2269980";
            "link_count" = "<null>";
            longitude = "-81.0105420";
            modified = "2013-12-17 10:47:43";
            owner = evdb;
            performers =                 {
                performer =                     {
                    creator = chuck;
                    id = "P0-001-000009039-4";
                    linker = evdb;
                    name = "Gregg Allman";
                    "short_bio" = Music;
                    url = "http://eventful.com/performers/gregg-allman-/P0-001-000009039-4?utm_source=apis&utm_medium=apim&utm_campaign=apic";
                };
            };
            "postal_code" = 32115;
            privacy = 1;
            "recur_string" = "<null>";
            "region_abbr" = FL;
            "region_name" = Florida;
            "start_time" = "2014-01-03 19:30:00";
            "stop_time" = "<null>";
            title = "Gregg Allman";
            "tz_city" = "<null>";
            "tz_country" = "<null>";
            "tz_id" = "<null>";
            "tz_olson_path" = "<null>";
            url = "http://eventful.com/daytonabeach/events/gregg-allman-/E0-001-062216029-9?utm_source=apis&utm_medium=apim&utm_campaign=apic";
            "venue_address" = "600 Auditorium Boulevard";
            "venue_display" = 1;
            "venue_id" = "V0-001-001187040-4";
            "venue_name" = "Peabody Auditorium";
            "venue_url" = "http://eventful.com/daytonabeach/venues/peabody-auditorium-/V0-001-001187040-4?utm_source=apis&utm_medium=apim&utm_campaign=apic";
            "watching_count" = "<null>";
        },
                    {
            "all_day" = 0;
            "calendar_count" = "<null>";
            calendars = "<null>";
            "city_name" = Sanford;
            "comment_count" = "<null>";
            "country_abbr" = USA;
            "country_abbr2" = US;
            "country_name" = "United States";
            created = "2011-02-24 08:57:26";
            description = "An open mic of any talent you may have. Rant, poetry, singing, playing, dancing, and any other thing you deem worthy!";
            "geocode_type" = "EVDB Geocoder";
            going = "<null>";
            "going_count" = "<null>";
            groups = "<null>";
            id = "E0-001-037213297-1@2014010219";
            image =                 {
                caption = "<null>";
                height = 48;
                medium =                     {
                    height = 128;
                    url = "http://s4.evcdn.com/images/medium/I0-001/003/876/551-6.jpeg_/open-mic-51.jpeg";
                    width = 128;
                };
                small =                     {
                    height = 48;
                    url = "http://s4.evcdn.com/images/small/I0-001/003/876/551-6.jpeg_/open-mic-51.jpeg";
                    width = 48;
                };
                thumb =                     {
                    height = 48;
                    url = "http://s4.evcdn.com/images/thumb/I0-001/003/876/551-6.jpeg_/open-mic-51.jpeg";
                    width = 48;
                };
                url = "http://s4.evcdn.com/images/small/I0-001/003/876/551-6.jpeg_/open-mic-51.jpeg";
                width = 48;
            };
            latitude = "28.8117215";
            "link_count" = "<null>";
            longitude = "-81.2657533";
            modified = "2013-03-15 09:32:12";
            owner = moire;
            performers = "<null>";
            "postal_code" = "<null>";
            privacy = 1;
            "recur_string" = "weekly on Thursdays until February 24, 2014";
            "region_abbr" = FL;
            "region_name" = Florida;
            "start_time" = "2014-01-02 19:30:00";
            "stop_time" = "2014-01-03 00:00:00";
            title = "Open Mic";
            "tz_city" = "<null>";
            "tz_country" = "<null>";
            "tz_id" = "<null>";
            "tz_olson_path" = "<null>";
            url = "http://orlando.eventful.com/events/open-mic-/E0-001-037213297-1@2014010219?utm_source=apis&utm_medium=apim&utm_campaign=apic";
            "venue_address" = "309 E First Street";
            "venue_display" = 1;
            "venue_id" = "V0-001-001317154-7";
            "venue_name" = "Little Fish Huge Pond";
            "venue_url" = "http://orlando.eventful.com/venues/little-fish-huge-pond-/V0-001-001317154-7?utm_source=apis&utm_medium=apim&utm_campaign=apic";
            "watching_count" = "<null>";
        },
                    {
            "all_day" = 0;
            "calendar_count" = "<null>";
            calendars = "<null>";
            "city_name" = "Saint Augustine";
            "comment_count" = "<null>";

            "country_abbr" = USA;
            "country_abbr2" = US;
            "country_name" = "United States";
            created = "2011-01-10 06:20:53";
            description = "The Old City Scrabblers host bi-weekly Scrabble games in a fun and non-competitive atmosphere. We play regular and Super Scrabble but primarily offer Super Scrabble games. Boards and dictionaries are provided. We&#39;re open to all levels of players from beginners through experienced. We play by standard Scrabble rules.";
            "geocode_type" = "EVDB Geocoder";
            going = "<null>";
            "going_count" = "<null>";
            groups = "<null>";
            id = "E0-001-036239869-3@2014010513";
            image =                 {
                caption = "<null>";
                height = 48;
                medium =                     {
                    height = 128;
                    url = "http://s4.evcdn.com/images/medium/I0-001/003/771/307-5.jpeg_/old-city-scrabblers-scrabble-game-07.jpeg";
                    width = 128;
                };
                small =                     {
                    height = 48;
                    url = "http://s4.evcdn.com/images/small/I0-001/003/771/307-5.jpeg_/old-city-scrabblers-scrabble-game-07.jpeg";
                    width = 48;
                };
                thumb =                     {
                    height = 48;
                    url = "http://s4.evcdn.com/images/thumb/I0-001/003/771/307-5.jpeg_/old-city-scrabblers-scrabble-game-07.jpeg";
                    width = 48;
                };
                url = "http://s4.evcdn.com/images/small/I0-001/003/771/307-5.jpeg_/old-city-scrabblers-scrabble-game-07.jpeg";
                width = 48;
            };
            latitude = "29.8591883";
            "link_count" = "<null>";
            longitude = "-81.2815189";
            modified = "2013-03-15 09:18:46";
            owner = OCScrabblers;
            performers = "<null>";
            "postal_code" = 32080;
            privacy = 1;
            "recur_string" = "weekly on Sundays until January 16, 2014";
            "region_abbr" = FL;
            "region_name" = Florida;
            "start_time" = "2014-01-05 13:00:00";
            "stop_time" = "2014-01-05 17:00:00";
            title = "Old City Scrabblers - Scrabble game";
            "tz_city" = "<null>";
            "tz_country" = "<null>";
            "tz_id" = "<null>";
            "tz_olson_path" = "<null>";
            url = "http://eventful.com/staugustine/events/old-city-scrabblers-scr-/E0-001-036239869-3@2014010513?utm_source=apis&utm_medium=apim&utm_campaign=apic";
            "venue_address" = "500 Pope Rd";
            "venue_display" = 1;
            "venue_id" = "V0-001-004785279-9";
            "venue_name" = "St Augustine YMCA";
            "venue_url" = "http://eventful.com/staugustine/venues/st-augustine-ymca-/V0-001-004785279-9?utm_source=apis&utm_medium=apim&utm_campaign=apic";
            "watching_count" = "<null>";
        },
                    {
            "all_day" = 0;
            "calendar_count" = "<null>";
            calendars = "<null>";
            "city_name" = "Saint Augustine";
            "comment_count" = "<null>";
            "country_abbr" = USA;
            "country_abbr2" = US;
            "country_name" = "United States";
            created = "2011-01-10 06:15:30";
            description = "Old City Scrabblers offers free Scrabble games in a non-competitive and fun atmosphere. We are open to players of all ages and levels of play - including beginners. We play regular and Super Scrabble games, but primarily Super Scrabble. Boards and dictionaries are provided. Just come and have fun!";
            "geocode_type" = "EVDB Geocoder";
            going = "<null>";
            "going_count" = "<null>";
            groups = "<null>";
            id = "E0-001-036239863-9@2014010113";
            image =                 {
                caption = "<null>";
                height = 48;
                medium =                     {
                    height = 128;
                    url = "http://s3.evcdn.com/images/medium/I0-001/003/771/302-0.jpeg_/old-city-scrabblers-scrabble-game-02.jpeg";
                    width = 128;
                };
                small =                     {
                    height = 48;
                    url = "http://s3.evcdn.com/images/small/I0-001/003/771/302-0.jpeg_/old-city-scrabblers-scrabble-game-02.jpeg";
                    width = 48;
                };
                thumb =                     {
                    height = 48;
                    url = "http://s3.evcdn.com/images/thumb/I0-001/003/771/302-0.jpeg_/old-city-scrabblers-scrabble-game-02.jpeg";
                    width = 48;
                };
                url = "http://s3.evcdn.com/images/small/I0-001/003/771/302-0.jpeg_/old-city-scrabblers-scrabble-game-02.jpeg";
                width = 48;
            };
            latitude = "29.8591883";
            "link_count" = "<null>";
            longitude = "-81.2815189";
            modified = "2013-03-15 09:21:57";
            owner = OCScrabblers;
            performers = "<null>";
            "postal_code" = 32080;
            privacy = 1;
            "recur_string" = "weekly on Wednesdays until January 12, 2014";
            "region_abbr" = FL;
            "region_name" = Florida;
            "start_time" = "2014-01-01 13:30:00";
            "stop_time" = "2014-01-01 17:00:00";
            title = "Old City Scrabblers - Scrabble game";
            "tz_city" = "<null>";
            "tz_country" = "<null>";
            "tz_id" = "<null>";
            "tz_olson_path" = "<null>";
            url = "http://eventful.com/staugustine/events/old-city-scrabblers-scr-/E0-001-036239863-9@2014010113?utm_source=apis&utm_medium=apim&utm_campaign=apic";
            "venue_address" = "500 Pope Rd";
            "venue_display" = 1;
            "venue_id" = "V0-001-004785279-9";
            "venue_name" = "St Augustine YMCA";
            "venue_url" = "http://eventful.com/staugustine/venues/st-augustine-ymca-/V0-001-004785279-9?utm_source=apis&utm_medium=apim&utm_campaign=apic";
            "watching_count" = "<null>";
        },
                    {
            "all_day" = 0;
            "calendar_count" = "<null>";
            calendars = "<null>";
            "city_name" = Sanford;
            "comment_count" = "<null>";
            "country_abbr" = USA;
            "country_abbr2" = US;
            "country_name" = "United States";
            created = "2011-03-07 09:43:22";
            description = "This is an evening for writers, playwrights, comedians and actors to work on their craft. Bring your work for discussion, cold reading or performance. It&#39;s a workshop.";
            "geocode_type" = "EVDB Geocoder";
            going = "<null>";
            "going_count" = "<null>";
            groups = "<null>";
            id = "E0-001-037399917-9@2014010620";
            image =                 {
                caption = "<null>";
                height = 48;
                medium =                     {
                    height = 128;
                    url = "http://s2.evcdn.com/images/medium/I0-001/003/897/477-0.gif_/those-my-words-77.gif";
                    width = 128;
                };
                small =                     {
                    height = 48;
                    url = "http://s2.evcdn.com/images/small/I0-001/003/897/477-0.gif_/those-my-words-77.gif";
                    width = 48;
                };
                thumb =                     {
                    height = 48;
                    url = "http://s2.evcdn.com/images/thumb/I0-001/003/897/477-0.gif_/those-my-words-77.gif";
                    width = 48;
                };
                url = "http://s2.evcdn.com/images/small/I0-001/003/897/477-0.gif_/those-my-words-77.gif";
                width = 48;
            };
            latitude = "28.8117215";
            "link_count" = "<null>";
            longitude = "-81.2657533";
            modified = "2013-03-15 09:32:03";
            owner = moire;
            performers = "<null>";
            "postal_code" = "<null>";
            privacy = 1;
            "recur_string" = "weekly on Mondays until March 7, 2014";
            "region_abbr" = FL;
            "region_name" = Florida;
            "start_time" = "2014-01-06 20:00:00";
            "stop_time" = "2014-01-06 22:00:00";
            title = "Those Are My Words";
            "tz_city" = "<null>";
            "tz_country" = "<null>";
            "tz_id" = "<null>";
            "tz_olson_path" = "<null>";
            url = "http://orlando.eventful.com/events/those-my-words-/E0-001-037399917-9@2014010620?utm_source=apis&utm_medium=apim&utm_campaign=apic";
            "venue_address" = "309 E First Street";
            "venue_display" = 1;
            "venue_id" = "V0-001-001317154-7";
            "venue_name" = "Little Fish Huge Pond";
            "venue_url" = "http://orlando.eventful.com/venues/little-fish-huge-pond-/V0-001-001317154-7?utm_source=apis&utm_medium=apim&utm_campaign=apic";
            "watching_count" = "<null>";
        },
{
事件={
事件=(
{
“全天”=0;
“日历计数”=“”;
日历=”;
“城市名称”=“代托纳海滩”;
“注释计数”=“”;
“国家”=美国;
“country_abbr2”=美国;
“国家名称”=“美国”;
created=“2013-10-09 07:16:07”;
description=“”;
“geocode_type”=“EVDB Geocoder”;
“去”;
“进行计数”=“”;
组=”;
id=“E0-001-062216029-9”;
图像={
标题=”;
高度=48;
中等={
高度=128;
url=”http://s4.evcdn.com/images/medium/I0-001/003/062/707-0.jpeg_/gregg-allman-07.jpeg";
宽度=128;
};
小={
高度=48;
url=”http://s4.evcdn.com/images/small/I0-001/003/062/707-0.jpeg_/gregg-allman-07.jpeg";
宽度=48;
};
拇指={
高度=48;
url=”http://s4.evcdn.com/images/thumb/I0-001/003/062/707-0.jpeg_/gregg-allman-07.jpeg";
宽度=48;
};
url=”http://s4.evcdn.com/images/small/I0-001/003/062/707-0.jpeg_/gregg-allman-07.jpeg";
宽度=48;
};
纬度=“29.2269980”;
“链接计数”=“”;
经度=“-81.0105420”;
修改后的=“2013-12-17 10:47:43”;
所有者=evdb;
表演者={
表演者={
创造者=查克;
id=“P0-001-000009039-4”;
链接器=evdb;
name=“格雷格·奥尔曼”;
"short_bio"即音乐;;
url=”http://eventful.com/performers/gregg-allman-/P0-001-000009039-4?utm_source=apis&utm_medium=apim&utm_campaign=apic";
};
};
“邮政编码”=32115;
隐私=1;
“重现字符串”=“”;
“区域_abbr”=FL;
“地区名称”=佛罗里达州;
“开始时间”=“2014-01-03 19:30:00”;
“停止时间”=“”;
title=“格雷格·奥尔曼”;
"慈城",;
“tz_country”=”;
“tz_id”=”;
“tz_olson_路径”=”;
url=”http://eventful.com/daytonabeach/events/gregg-allman-/E0-001-062216029-9?utm_source=apis&utm_medium=apim&utm_campaign=apic";
“场馆地址”=“600礼堂大道”;
“场馆展示”=1;
“场馆标识”=“V0-001-001187040-4”;
“场馆名称”=“皮博迪礼堂”;
“地点url=”http://eventful.com/daytonabeach/venues/peabody-auditorium-/V0-001-001187040-4?utm_source=apis&utm_medium=apim&utm_campaign=apic";
“监视计数”=“”;
},
{
“全天”=0;
“日历计数”=“”;
日历=”;
“城市名称”=桑福德;
“注释计数”=“”;
“国家”=美国;
“country_abbr2”=美国;
“国家名称”=“美国”;
created=“2011-02-24 08:57:26”;
description=“你可能拥有的任何天赋的开放式话筒。咆哮、诗歌、歌唱、演奏、舞蹈,以及任何你认为有价值的东西!”;
“geocode_type”=“EVDB Geocoder”;
“去”;
“进行计数”=“”;
组=”;
id=“E0-001-037213297-1@2014010219";
图像={
标题=”;
高度=48;
中等={
高度=128;
url=”http://s4.evcdn.com/images/medium/I0-001/003/876/551-6.jpeg_/open-mic-51.jpeg";
宽度=128;
};
小={
高度=48;
url=”http://s4.evcdn.com/images/small/I0-001/003/876/551-6.jpeg_/open-mic-51.jpeg";
宽度=48;
};
拇指={
高度=48;
url=”http://s4.evcdn.com/images/thumb/I0-001/003/876/551-6.jpeg_/open-mic-51.jpeg";
宽度=48;
};
url=”http://s4.evcdn.com/images/small/I0-001/003/876/551-6.jpeg_/open-mic-51.jpeg";
宽度=48;
};
纬度=“28.8117215”;
“链接计数”=“”;
经度=“-81.2657533”;
修改后的=“2013-03-15 09:32:12”;
所有者=云纹;
表演者=”;
“邮政编码”=“”;
隐私=1;
“重现字符串”=“2014年2月24日前每周四每周”;
“区域_abbr”=FL;
“地区名称”=佛罗里达州;
“开始时间”=“2014-01-02 19:30:00”;
“停止时间”=“2014-01-03 00:00:00”;
title=“打开话筒”;
"慈城",;
“tz_country”=”;
“tz_id”=”;
“tz_olson_路径”=”;
url=”http://orlando.eventful.com/events/open-mic-/E0-001-037213297-1@2014010219?utm_来源=API和utm_媒介=apim和utm_活动=apic”;
“场馆地址”=“309 E第一街”;
“展览地点
success: function(httpResponse) {
         var responseObj = JSON.parse(httpResponse.text);
         console.log(responseObj);
         var s = httpResponse.text;
         response.success(s);
},