Is there a Socrata API for reading a site's catalog? - socrata

Is there a Socrata API for reading a site's catalog of datasets?
For example, for Boston, is there an API equivalent of this page?

Try this
https://data.cityofboston.gov/data.json
That should have every dataset in JSON format.

There is also a (beta) API available for catalog reading/searching, which may be easier to filter/parse than the data.json file (but either would work!). You can find information about this here: http://labs.socrata.com/docs/search.html.

Related

How can I find some type of objects via OSM

How can i find some type of object via OpenStreetMap ? I want to send the request and receive answer in XML format (JSON will be ok). E.g. i want to know what historical objects or restaurant are available in place where I'm.
Have a look at the Overpass API to query for OSM data and Overpass Turbo for testing/displaying.
For more infos you should checkout the OSM specific sites: http://wiki.openstreetmap.org/wiki/Help
For simple queries a geocoder should suffice. There are various search engines for OSM of which Nominatim is the most popular one currently. Please see Nominatim's usage policy if you intend to use OpenStreetMap's official Nominatim instance, or choose one of the alternatives.
For more complex queries take a look at the Overpass API mentioned in the answer by RoToRa.

Getting KML map api response as java script source

I have called this url http://maps.google.com/maps?f=d&hl=en&saddr=60012& daddr=500+NORTHWEST+HWY,+CARY,+IL,+60013&ie=UTF8&0&om=0&output=kml&sensor=false instead of getting KML response I am getting it as full javascript source. I am really confused with that. Could any one help me out from this issue.
This way of extracting the Google Directions from Google by parsing the KML file is no longer available since 27 July 2012 (because Google has changed the structure of retrieving Google Directions, now you can only get it by JSON or XML), it is time to migrate your code to JSON instead of KML.
See the answer (for Android, but I guess you can work it out for BlackBerry) in my own question here.

Google Map Result as XML or JSON

I have this url to view the nearest hospitals with the given coordinates.
http://maps.google.com/maps?q=hospitals+near+{lat},{long}
Is their a way to get the results in XML or JSON?
Thanks!
You have lots of options, starting here. IF you want a URL you can query and get back XML or JSON then go here.
Those are links directly to the Google APIs documentation. You have many options available including a JavaScript API as well as a web service that can retrieve JSON or XML.

Access the Google Maps API within Powershell

I try to program a name generator script for various sample data entry jobs. What I need to do is the following:
Access the Google Maps Api and give me a random adress (in a specific city if possible)
Return Street and Zip Code (and City (see above))
Is that possible in Powershell? I was thinking about using the IE ComObj and just parse the dom of Google Maps but that seems so wasteful.
Any help would be great! Thanks :)
I'm not familiar with the Google maps API however it looks like you are just calling web services.
You can interact with web services in PowerShell. If the service communicates with SOAP you can use the New-WebServiceProxy cmdlet. If it is a REST service you can use the System.Net.WebRequest .NET class, here's an example. As noted in the linked answer, you will probably want a JSON library to process the service response. Also, this fella posted a JSON module on PoshCode that you might want to take a look at.
Also, a new cmdlet is being introduced in PowerShell V3 Invoke-RestMethod, which is currently in community technical preview...
Google map provides REST API's to use them in Powershell, you can call these using an Invoke-RestMethod cmdlet to get your task done. Infact I wrote a Googlemaps module in powershell and you can get the same from Powershell Gallery

Google Maps kml files

If I use an embeded google map in my website, will the data contained in an kml displayed be publicly viewable?
Will it be possible for the user to access just the data displayed (i.e., not the user interface) or would I have to provide that separately?
If you load your KML through the API, with GGeoXml(), (V2), or KmlLayer(), (V3), then your data needs to be in a public server because it is parsed by Google's servers and they need to be able to get to it. If you load it with a third party extension then you can keep it private.
Third party extensions that can load and parse KML data are EGeoXml() by Mike Williams
http://econym.org.uk/gmap/extensions.htm#EGeoXml
and GeoXml() by Lance Dyas
http://www.dyasdesigns.com/geoxml/
but I believe that both of those are only available for the API V2 for now.
I just upgraded my Google Maps JavaScript API Application from v2 to v3, following these instructions.
My v2 application was using the EGeoXml extension referred to by #Marcelo in the accepted answer to locally parse KML data.
A substitution of geoxml3 in its place, as suggested by #geocodezip (a contributor to the project) in a comment, functioned immediately in my v3 application.
No, the data will not be public. I'm not sure about your other question though.