Methods

Method detail for: getGeoAttByCity

This request requires you to submit a city and two-letter State abbreviation. The API will return a list of attributes for all objects of the selected type within that city/state.

Valid Datasets

DatasetDataset DetailsMethod Parameters
Maponics College Campus BoundariesClick To ViewClick To View

When calling this dataset using this method, use these parameters:

Maponics Destination & Venue BoundariesClick To ViewClick To View

When calling this dataset using this method, use these parameters:

Maponics Neighborhood Boundaries EuropeClick To ViewClick To View

When calling this dataset using this method, use these parameters:

Maponics Neighborhood Boundaries North AmericaClick To ViewClick To View

When calling this dataset using this method, use these parameters:

Maponics +Residential BoundariesClick To ViewClick To View

When calling this dataset using this method, use these parameters:

Maponics Shopping BoundariesClick To ViewClick To View

When calling this dataset using this method, use these parameters:

Sample Request and Return Data

<?xml version="1.0" encoding="UTF-8" ?> <data> <auth> <loginname>your_username</loginname> <key>your_api_key</key> </auth> <request> <dataset>N</dataset> <method>getGeoAttByCity</method> <parameters> <city>new york</city> <state>NY</state> <submatch>N</submatch> <fields>nid,neighborhd</fields> </parameters> </request> </data>
{ "data":{ "auth":{ "loginname":"your_username", "key":"your_api_key" } }, "request":[ { "dataset":"N", "method":"getGeoAttByCity", "count":"false", "returnType":"json", "parameters":{ "city":"New York", "state":"NY", "fields":"neighborhd,nid", "submatch":"N" } } ] }
<?xml version="1.0" encoding="UTF-8" ?> <data> <request> <item> <neighborhd>NoLita</neighborhd> <nid>7652</nid> </item> <item> <neighborhd>West Village</neighborhd> <nid>7664</nid> </item> <item> <neighborhd>Old Howard Beach</neighborhd> <nid>7713</nid> </item> <item> <neighborhd>Claremont</neighborhd> <nid>7522</nid> </item> <item> <neighborhd>Ozone Park</neighborhd> <nid>7714</nid> </item> <item> <neighborhd>Clason Point</neighborhd> <nid>7523</nid> </item> </request> </data>
[ { "resultcode":0, "message":"Return OK", "requestid":"01-1451" }, [ { "neighborhd":"NoLita", "nid":"7652" }, { "neighborhd":"West Village", "nid":"7664" }, { "neighborhd":"Old Howard Beach", "nid":"7713" }, { "neighborhd":"Claremont", "nid":"7522" }, { "neighborhd":"Ozone Park", "nid":"7714" }, { "neighborhd":"Clason Point", "nid":"7523" }, { "neighborhd":"Baychester", "nid":"7516" }, { "neighborhd":"Belmont", "nid":"7517" }, { "neighborhd":"Bronxdale", "nid":"7518" }, { "neighborhd":"Bronxwood", "nid":"7519" }, { "neighborhd":"Castle Hill", "nid":"7520" }, { "neighborhd":"City Island", "nid":"7521" }, { "neighborhd":"Concourse", "nid":"7524" }, { "neighborhd":"Country Club", "nid":"7525" }, { "neighborhd":"Eastchester", "nid":"7526" }, { "neighborhd":"Edenwald", "nid":"7527" }, { "neighborhd":"Fairmont - Claremont Village", "nid":"7528" }, { "neighborhd":"Fieldston", "nid":"7529" }, { "neighborhd":"Tremont", "nid":"7561" }, { "neighborhd":"Fleetwood - Concourse Village", "nid":"7530" }, { "neighborhd":"Fordham Heights", "nid":"7531" }, { "neighborhd":"Fordham Manor", "nid":"7532" }, { "neighborhd":"Foxhurst", "nid":"7533" }, { "neighborhd":"High Bridge", "nid":"7534" }, { "neighborhd":"Hunts Point - Longwood", "nid":"7535" }, { "neighborhd":"Jeromes Park", "nid":"7536" }, { "neighborhd":"Pomonok", "nid":"7715" }, { "neighborhd":"Kingsbridge", "nid":"7537" }, { "neighborhd":"Laconia", "nid":"7538" }, { "neighborhd":"Marble Hill", "nid":"7539" }, { "neighborhd":"Melrose", "nid":"7540" }, { "neighborhd":"Middletown - Pelham Bay", "nid":"7541" }, { "neighborhd":"Morris Heights", "nid":"7542" }, { "neighborhd":"Morris Park", "nid":"7543" }, { "neighborhd":"Morrisania", "nid":"7544" }, { "neighborhd":"Mott Haven", "nid":"7545" }, { "neighborhd":"Mount Eden", "nid":"7546" }, { "neighborhd":"Mount Hope", "nid":"7547" }, { "neighborhd":"North New York", "nid":"7548" }, { "neighborhd":"North Riverdale", "nid":"7549" }, { "neighborhd":"Norwood", "nid":"7550" }, { "neighborhd":"Olinville", "nid":"7551" }, { "neighborhd":"Park Versailles", "nid":"7552" }, { "neighborhd":"Parkchester", "nid":"7553" }, { "neighborhd":"Pelham Gardens", "nid":"7554" }, { "neighborhd":"Port Morris", "nid":"7555" }, { "neighborhd":"Riverdale", "nid":"7556" }, { "neighborhd":"Schuylerville", "nid":"7557" }, { "neighborhd":"Soundview", "nid":"7558" }, { "neighborhd":"Spuyten Duyvil", "nid":"7559" }, { "neighborhd":"Throgs Neck - Edgewater Park", "nid":"7560" }, { "neighborhd":"Unionport", "nid":"7562" }, { "neighborhd":"University Heights", "nid":"7563" }, { "neighborhd":"Van Nest", "nid":"7564" }, { "neighborhd":"Wakefield", "nid":"7565" }, { "neighborhd":"West Farms", "nid":"7566" }, { "neighborhd":"Westchester Village", "nid":"7567" }, { "neighborhd":"Williambridge", "nid":"7568" }, { "neighborhd":"Woodlawn Heights", "nid":"7569" }, { "neighborhd":"Woodstock", "nid":"7570" }, { "neighborhd":"Bath Beach", "nid":"7571" }, { "neighborhd":"Bay Ridge & Fort Hamilton", "nid":"7572" }, { "neighborhd":"Bedford - Stuyvesant", "nid":"7573" }, { "neighborhd":"Bensonhurst", "nid":"7574" }, { "neighborhd":"Dyker Heights", "nid":"7591" }, { "neighborhd":"Bergen Beach", "nid":"7575" }, { "neighborhd":"Boerum Hill", "nid":"7576" }, { "neighborhd":"Borough Park", "nid":"7577" }, { "neighborhd":"Brighton Beach", "nid":"7578" }, { "neighborhd":"Crown Heights", "nid":"7588" }, { "neighborhd":"Brooklyn Heights", "nid":"7579" }, { "neighborhd":"Brownsville", "nid":"7580" }, { "neighborhd":"Bushwick", "nid":"7581" }, { "neighborhd":"Canarsie", "nid":"7582" }, { "neighborhd":"Carroll Gardens", "nid":"7583" }, { "neighborhd":"Clinton Hill", "nid":"7584" }, { "neighborhd":"Cobble Hill", "nid":"7585" }, { "neighborhd":"Columbia Street Waterfront District", "nid":"7586" }, { "neighborhd":"Coney Island", "nid":"7587" }, { "neighborhd":"Cypress Hills", "nid":"7589" }, { "neighborhd":"Downtown Brooklyn", "nid":"7590" }, { "neighborhd":"East Flatbush", "nid":"7592" }, { "neighborhd":"East New York", "nid":"7593" }, { "neighborhd":"Flatbush - Ditmas Park", "nid":"7594" }, { "neighborhd":"Flatlands", "nid":"7595" }, { "neighborhd":"Fort Greene", "nid":"7596" }, { "neighborhd":"Gerritsen Beach", "nid":"7597" }, { "neighborhd":"Gowanus", "nid":"7598" }, { "neighborhd":"Gravesend", "nid":"7599" }, { "neighborhd":"Greenpoint", "nid":"7600" }, { "neighborhd":"Greenwood", "nid":"7601" }, { "neighborhd":"Kensington & Parkville", "nid":"7602" }, { "neighborhd":"Manhattan Beach", "nid":"7603" }, { "neighborhd":"Mapleton", "nid":"7604" }, { "neighborhd":"Marine Park", "nid":"7605" }, { "neighborhd":"Midwood", "nid":"7606" }, { "neighborhd":"Elmhurst", "nid":"7686" }, { "neighborhd":"Mill Basin", "nid":"7607" }, { "neighborhd":"Park Slope", "nid":"7608" }, { "neighborhd":"Prospect Heights", "nid":"7609" }, { "neighborhd":"Prospect Lefferts Gardens", "nid":"7610" }, { "neighborhd":"Prospect Park South", "nid":"7611" }, { "neighborhd":"Red Hook", "nid":"7612" }, { "neighborhd":"Sea Gate", "nid":"7613" }, { "neighborhd":"Sheepshead Bay", "nid":"7614" }, { "neighborhd":"Clinton", "nid":"7625" }, { "neighborhd":"Sunset Park", "nid":"7615" }, { "neighborhd":"Vinegar Hill", "nid":"7616" }, { "neighborhd":"Williamsburg", "nid":"7617" }, { "neighborhd":"Windsor Terrace", "nid":"7618" }, { "neighborhd":"Battery Park City", "nid":"7620" }, { "neighborhd":"Central Park", "nid":"7621" }, { "neighborhd":"Chelsea", "nid":"7622" }, { "neighborhd":"Chinatown", "nid":"7623" }, { "neighborhd":"Civic Center", "nid":"7624" }, { "neighborhd":"East Harlem", "nid":"7626" }, { "neighborhd":"East Village", "nid":"7627" }, { "neighborhd":"Financial District", "nid":"7628" }, { "neighborhd":"Flatiron District", "nid":"7629" }, { "neighborhd":"Fort George", "nid":"7630" }, { "neighborhd":"Garment District", "nid":"7631" }, { "neighborhd":"Gramercy Park", "nid":"7632" }, { "neighborhd":"Greenwich Village", "nid":"7633" }, { "neighborhd":"Hamilton Heights", "nid":"7634" }, { "neighborhd":"Harlem", "nid":"7635" }, { "neighborhd":"Hell's Kitchen", "nid":"7636" }, { "neighborhd":"NoHo", "nid":"7651" }, { "neighborhd":"Inwood", "nid":"7637" }, { "neighborhd":"Kips Bay", "nid":"7638" }, { "neighborhd":"Koreatown", "nid":"7639" }, { "neighborhd":"Little Italy", "nid":"7642" }, { "neighborhd":"Lower East Side", "nid":"7643" }, { "neighborhd":"Marcus Garvey", "nid":"7644" }, { "neighborhd":"Meatpacking District", "nid":"7645" }, { "neighborhd":"Midtown Center", "nid":"7646" }, { "neighborhd":"Midtown East", "nid":"7647" }, { "neighborhd":"Midtown South Central", "nid":"7648" }, { "neighborhd":"Morningside Heights", "nid":"7649" }, { "neighborhd":"Murray Hill", "nid":"7650" }, { "neighborhd":"Roosevelt Island", "nid":"7653" }, { "neighborhd":"SoHo", "nid":"7654" }, { "neighborhd":"Stuyvesant Town", "nid":"7655" }, { "neighborhd":"Sutton Place", "nid":"7656" }, { "neighborhd":"Theater District - Times Square", "nid":"7657" }, { "neighborhd":"Tribeca", "nid":"7658" }, { "neighborhd":"Tudor City", "nid":"7659" }, { "neighborhd":"Two Bridges", "nid":"7660" }, { "neighborhd":"Upper East Side", "nid":"7661" }, { "neighborhd":"Upper West Side", "nid":"7662" }, { "neighborhd":"Washington Heights", "nid":"7663" }, { "neighborhd":"Alley Park", "nid":"7666" }, { "neighborhd":"Astoria", "nid":"7668" }, { "neighborhd":"Auburndale", "nid":"7669" }, { "neighborhd":"Bayside", "nid":"7670" }, { "neighborhd":"Bellerose Floral Park", "nid":"7672" }, { "neighborhd":"Briarwood", "nid":"7674" }, { "neighborhd":"Clearview", "nid":"7679" }, { "neighborhd":"Broad Channel", "nid":"7675" }, { "neighborhd":"Brookville", "nid":"7676" }, { "neighborhd":"Bowne Park", "nid":"7677" }, { "neighborhd":"Cambria Heights", "nid":"7678" }, { "neighborhd":"College Point", "nid":"7680" }, { "neighborhd":"Corona", "nid":"7681" }, { "neighborhd":"Ditmars Steinway", "nid":"7682" }, { "neighborhd":"Douglaston Little Neck", "nid":"7683" }, { "neighborhd":"East Elmhurst", "nid":"7684" }, { "neighborhd":"East Flushing", "nid":"7685" }, { "neighborhd":"Flushing", "nid":"7688" }, { "neighborhd":"Flushing Meadows Corona Park", "nid":"7689" }, { "neighborhd":"Forest Hills", "nid":"7690" }, { "neighborhd":"Jackson Heights", "nid":"7699" }, { "neighborhd":"Forest Park", "nid":"7691" }, { "neighborhd":"Fresh Meadows", "nid":"7692" }, { "neighborhd":"Glendale", "nid":"7693" }, { "neighborhd":"Hillcrest", "nid":"7695" }, { "neighborhd":"Hollis", "nid":"7696" }, { "neighborhd":"Howard Beach", "nid":"7697" }, { "neighborhd":"Hunters Point", "nid":"7698" }, { "neighborhd":"Queens Village", "nid":"7716" }, { "neighborhd":"Jamaica", "nid":"7700" }, { "neighborhd":"Jamaica Estates", "nid":"7701" }, { "neighborhd":"Jamaica Hills", "nid":"7702" }, { "neighborhd":"Kew Gardens", "nid":"7703" }, { "neighborhd":"Kew Garden Hills", "nid":"7704" }, { "neighborhd":"Laurelton", "nid":"7705" }, { "neighborhd":"Lindenwood", "nid":"7706" }, { "neighborhd":"Maspeth", "nid":"7707" }, { "neighborhd":"Middle Village", "nid":"7708" }, { "neighborhd":"Murray Hill", "nid":"7709" }, { "neighborhd":"North Corona", "nid":"7711" }, { "neighborhd":"Oakland Gardens", "nid":"7712" }, { "neighborhd":"Queensboro Hill", "nid":"7717" }, { "neighborhd":"Rego Park", "nid":"7718" }, { "neighborhd":"Richmond Hill", "nid":"7719" }, { "neighborhd":"Ridgewood", "nid":"7720" }, { "neighborhd":"Rochdale", "nid":"7721" }, { "neighborhd":"Utopia", "nid":"7729" }, { "neighborhd":"Rosedale", "nid":"7723" }, { "neighborhd":"South Jamaica", "nid":"7724" }, { "neighborhd":"South Ozone Park", "nid":"7725" }, { "neighborhd":"Springfield Gardens", "nid":"7726" }, { "neighborhd":"St. Albans", "nid":"7727" }, { "neighborhd":"Sunnyside", "nid":"7728" }, { "neighborhd":"Whitestone", "nid":"7730" }, { "neighborhd":"Woodhaven", "nid":"7731" }, { "neighborhd":"Woodside", "nid":"7732" }, { "neighborhd":"Eltingville", "nid":"7745" }, { "neighborhd":"Annadale", "nid":"7733" }, { "neighborhd":"Arden Heights", "nid":"7734" }, { "neighborhd":"Arrochar", "nid":"7735" }, { "neighborhd":"Bay Terrace", "nid":"7736" }, { "neighborhd":"Dongan Hills", "nid":"7743" }, { "neighborhd":"Bloomfield", "nid":"7737" }, { "neighborhd":"Bulls Head", "nid":"7738" }, { "neighborhd":"Castleton Corners", "nid":"7739" }, { "neighborhd":"Elm Park", "nid":"7744" }, { "neighborhd":"Charleston", "nid":"7740" }, { "neighborhd":"Clifton", "nid":"7741" }, { "neighborhd":"Concord", "nid":"7742" }, { "neighborhd":"Emerson Hill", "nid":"7746" }, { "neighborhd":"Fort Worth", "nid":"7747" }, { "neighborhd":"Graniteville", "nid":"7748" }, { "neighborhd":"Great Kills", "nid":"7749" }, { "neighborhd":"Grymes Hill", "nid":"7750" }, { "neighborhd":"Heartland Village", "nid":"7751" }, { "neighborhd":"Lighthouse Hill", "nid":"7752" }, { "neighborhd":"Mariners Park", "nid":"7753" }, { "neighborhd":"Midland Beach", "nid":"7754" }, { "neighborhd":"New Brighton", "nid":"7755" }, { "neighborhd":"New Dorp", "nid":"7756" }, { "neighborhd":"New Dorp Beach", "nid":"7757" }, { "neighborhd":"New Springville", "nid":"7758" }, { "neighborhd":"Oakwood", "nid":"7759" }, { "neighborhd":"Park Hill", "nid":"7760" }, { "neighborhd":"Port Richmond", "nid":"7761" }, { "neighborhd":"Prince's Bay", "nid":"7762" }, { "neighborhd":"Randall Manor", "nid":"7763" }, { "neighborhd":"St. George", "nid":"7770" }, { "neighborhd":"Richmond Town", "nid":"7764" }, { "neighborhd":"Rosebank", "nid":"7765" }, { "neighborhd":"Rossville", "nid":"7766" }, { "neighborhd":"Shore Acres", "nid":"7767" }, { "neighborhd":"Silver Lake", "nid":"7768" }, { "neighborhd":"South Beach \/ Old Town", "nid":"7769" }, { "neighborhd":"Stapleton", "nid":"7771" }, { "neighborhd":"Sunnyside", "nid":"7772" }, { "neighborhd":"Todt Hill", "nid":"7773" }, { "neighborhd":"Tompkinsville", "nid":"7774" }, { "neighborhd":"Tottenville", "nid":"7775" }, { "neighborhd":"Travis - Chelsea", "nid":"7776" }, { "neighborhd":"West Brighton", "nid":"7777" }, { "neighborhd":"Westerleigh", "nid":"7778" }, { "neighborhd":"Woodrow", "nid":"7779" }, { "neighborhd":"Bowery", "nid":"64424" }, { "neighborhd":"Union Square", "nid":"64425" }, { "neighborhd":"Governors Island", "nid":"64439" }, { "neighborhd":"Liberty Island", "nid":"64440" }, { "neighborhd":"Brooklyn Navy Yard", "nid":"71969" }, { "neighborhd":"Manhattanville", "nid":"71978" }, { "neighborhd":"Kissena Park", "nid":"71970" }, { "neighborhd":"Far Rockaway", "nid":"71971" }, { "neighborhd":"Rockaway Beach", "nid":"71974" }, { "neighborhd":"John F Kennedy International Airport", "nid":"71975" }, { "neighborhd":"Ocean Parkway", "nid":"77143" }, { "neighborhd":"Beechhurst", "nid":"77124" }, { "neighborhd":"DUMBO", "nid":"77126" }, { "neighborhd":"Edgemere", "nid":"77129" }, { "neighborhd":"Glen Oaks", "nid":"77131" }, { "neighborhd":"Holliswood", "nid":"77133" }, { "neighborhd":"Laguardia Airport", "nid":"77134" }, { "neighborhd":"Long Island City", "nid":"77136" } ] ]