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 | |
/** | |
* Function to get City Name by latitude and longitude using google api geocode | |
* Ahmed Hendi | |
* | |
* @param latlong (String) is Latitude and Longitude with , as separator for example "21.3724002,39.8016229" | |
**/ | |
function getCityNameByLatitudeLongitude($latlong) | |
{ |
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
// | |
// LinePollView.swift | |
// | |
// Created by Hendi on 12/8/18. | |
// Copyright © 2018 Hendi. All rights reserved. | |
// | |
import Foundation | |
import UIKit | |
@IBDesignable class LinePollView: UIView { |
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
private void loadSpinners() { | |
dialog = ProgressDialog.show(AddVisitActivity.this, "", getResources().getString(R.string.loading), true); | |
WebService.getService().getLocations().enqueue(new Callback<LocationListResponse>() { | |
@Override | |
public void onResponse(Call<LocationListResponse> call, Response<LocationListResponse> response) { | |
countries = response.body().getCountry(); | |
cities = response.body().getCity(); |