Broke out init code to API methods.
Support for submitting GeoJSON, URL or reqwest params as geoJson option
Updated example