About Social Health Inspections Map
Map Attribution: (Many thanks to our friends at Mapbox and OpenStreetMaps)
© Mapbox (https://www.mapbox.com/about/maps/
© OpenStreetMap http://www.openstreetmap.org/copyright
See recent New York City Health Inspection reports on a map. Click button to see the nearby restaurants and businesses. You will be amazed at the violation descriptions.
Here's a sample:
Evidence of mice or live mice present in facility's food and/or non-food areas,
Facility not vermin proof. Harborage or conditions conducive to attracting vermin to the premises and/or allowing vermin to exist.,
Evidence of rats or live rats present in facility's food and/or non-food areas
Establishment Closed by DOHMH. Violations were cited in the following area(s) and those requiring immediate action were addressed.
source: https://data.cityofnewyork.us/Health/DOHMH-New-York-City-Restaurant-Inspection-Results/xx67-kt59
Includes a test "Share" button which implements an intent receiver. Can be used as a generic Mapbox Style Viewer for Android native.
If you have a mapbox style and a token and want to show the map using native mapbox then you can use the following example: (replace style and token with your map style and token)
try {
Intent sendIntent = new Intent();
sendIntent.setAction(Intent.ACTION_VIEW);
sendIntent.putExtra(Intent.EXTRA_TEXT,
"mapbox://styles/cityregister/cinyzwrq10003a4npcz3lb1t3");
sendIntent.putExtra(Intent.EXTRA_REMOTE_INTENT_TOKEN,
"pk.eyJ1IjoiY2l0eXJlZ2lzdGVyIiwiYSI6ImNpbnhrMHJhcjE3OHh1Mm0zbnJ6YXZseWcifQ.1TP2MzhnoJCdzX_qYns1BA");
sendIntent.setType("mapbox/style");
startActivity(sendIntent);
} catch(Exception e){
Toast.makeText(MainActivity.this, e.getLocalizedMessage(), Toast.LENGTH_LONG).show();
}
Download and install
Social Health Inspections Map version 2.9.0 on your
Android device!
Downloaded 10+ times, content rating: Everyone
Android package:
com.brooklynmarathon.mapcityregister.socialhealth, download Social Health Inspections Map.apk