There is no one north station return from api

98 views
Skip to first unread message

galvin chew

unread,
Feb 10, 2015, 9:17:51 PM2/10/15
to gothe...@googlegroups.com
We are receiving the following response, and there is no One-North station inside

[{"phoneNumbers":[],"titleNoFormatting":"Buona Vista MRT Station (EW21)","categoryNoFormatting":"rail station","addressLines":["100 North Buona Vista Road"],"lat":1.3072821000000001,"lng":103.790105,"iconType":"marker_red","category":"Rail Station","city":"","title":"Buona Vista MRT Station (EW21)","url":"","country":"","region":"","streetAddress":"100 North Buona Vista Road","html":"","extendedData":{"services":["East-West Line"]}},{"phoneNumbers":[],"titleNoFormatting":"Commonwealth MRT Station (EW20)","categoryNoFormatting":"rail station","addressLines":["375 Commonwealth Avenue"],"lat":1.3025772500000001,"lng":103.79834255,"iconType":"marker_red","category":"Rail Station","city":"","title":"Commonwealth MRT Station (EW20)","url":"","country":"","region":"","streetAddress":"375 Commonwealth Avenue","html":"","extendedData":{"services":["East-West Line"]}},{"phoneNumbers":[],"titleNoFormatting":"Dover MRT Station (EW22)","categoryNoFormatting":"rail station","addressLines":["200 Commonwealth Avenue West"],"lat":1.31140275,"lng":103.7787131,"iconType":"marker_red","category":"Rail Station","city":"","title":"Dover MRT Station (EW22)","url":"","country":"","region":"","streetAddress":"200 Commonwealth Avenue West","html":"","extendedData":{"services":["East-West Line"]}},{"phoneNumbers":[],"titleNoFormatting":"Queenstown MRT Station (EW19)","categoryNoFormatting":"rail station","addressLines":["301 Commonwealth Avenue"],"lat":1.29465525,"lng":103.806086,"iconType":"marker_red","category":"Rail Station","city":"","title":"Queenstown MRT Station (EW19)","url":"","country":"","region":"","streetAddress":"301 Commonwealth Avenue","html":"","extendedData":{"services":["East-West Line"]}}]

This is the code we are running

var amenities = new GAmenities();

geocoder.getLatLng(address, function(latlang) {
    if (latlang) {
        amenities.clearCategories();
        amenities.addCategory(GAmenities.AMENITY_RAIL_STATION);
        GEvent.addListener(amenities, "load", function() {
            var mrt = amenities.getCategoryResults(GAmenities.AMENITY_RAIL_STATION);
            ...........
            ...........

        });
        amenities.load(latlang);
    }
});
Reply all
Reply to author
Forward
0 new messages