This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.youtube.sorcjc.proyectoprofesionales.io; | |
import com.google.gson.Gson; | |
import com.google.gson.GsonBuilder; | |
import com.squareup.okhttp.OkHttpClient; | |
import com.squareup.okhttp.logging.HttpLoggingInterceptor; | |
import com.youtube.sorcjc.proyectoprofesionales.io.deserializers.LoginDeserializer; | |
import com.youtube.sorcjc.proyectoprofesionales.io.responses.LoginResponse; | |
import retrofit.GsonConverterFactory; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Http\Controllers; | |
use App\Kine; | |
use Illuminate\Http\Request; | |
class KineController extends Controller | |
{ | |
public function index() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.programacionymas.helpers | |
import android.content.Context | |
import android.content.SharedPreferences | |
import android.preference.PreferenceManager | |
object PreferenceHelper { | |
fun defaultPrefs(context: Context): SharedPreferences | |
= PreferenceManager.getDefaultSharedPreferences(context) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if (isset($_GET['direccion'])) | |
{ | |
$direccion = $_GET['direccion']; | |
echo "Se ha ingresado 1 dirección: " . $direccion; | |
$google_maps_url = "https://maps.googleapis.com/maps/api/geocode/json?address=" . urlencode($direccion) ."&key=AIzaSyApj6gLFFjVQ2sFXJ6k-U1yyiCfvBchybI"; | |
$google_maps_json = file_get_contents($google_maps_url); | |
$google_maps_array = json_decode($google_maps_json, true); | |
$lat = $google_maps_array["results"][0]["geometry"]["location"]["lat"]; |