import simplejson if json does not have right module, move latlong and set into base api