Giter Club home page Giter Club logo

jquery-ph-locations's People

Contributors

buonzz avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

jquery-ph-locations's Issues

Can't get a data

I can't get data from region to barangay. I think your server is down. Thank you

paid plans for commercial use

Hi Everyone,

This plugin requires a rest api and a MySQL database to keep it running. So you might notice that there are some outages for the last few months. The cost of running the server is around $50/month and I've never able to sustain it with my personal money.

To alleviate this cost problem, I've decided to offer a paid plan that will have more uptime assurance compared to "free plan".

How it works:

  • By default, the plugin includes a "free api key" for general use. It is usable but have limits of 5000 calls per day across all users of the free plugin.
  • Once the 5000 calls per day is exhausted, the api will start returning error ( and plugin will not work)
  • If you need to ensure the plugin is working in your app 100% of the time, you need to have your OWN API key issued by me.
  • the paid API key will have higher limit of 10,000 api calls per day, and will be specifically issued to only you.
  • please send an email to [email protected] to avail of the paid API key
  • How much: P1,200 annually (e.g. only P100 /month). Its really cheap, Its just for the sake of keeping the service running. This price however is for 10k api calls/day, if you need higher than that, please reach out.

Thanks all!

please fix the error Error: getaddrinfo ENOTFOUND

i want your ph api location for my project but here is i encountered errors:

Error: getaddrinfo ENOTFOUND myboarders-db1.cz5rvnohbzyu.us-east-1.rds.amazonaws.com myboarders-db1.cz5rvnohbzyu.us-east-1.rds.amazonaws.com:3306

Thank you!

Load specific Region name by region code from database

Hello boss paano po mag load ng specific region name... default po kasi lagi ang dinidisplay po sa fetch_list.. which is yung ARMM...
gusto ko po kasi e fetch yung saved region_code po galing database..

example:
fetch -> region_code: 10 from database
display-> Region X (Northern Mindanao) in selection tag.... instead po sa default ARMM

ito po yung code ko po

 $('#region').ph_locations({'location_type': 'regions'});
 $('#region').val('10').trigger('change') //sample value 10 -> Region X (Northern Mindanao);
 $('#region').ph_locations('fetch_list');

missing places

there are missing district in Quezon city
District 4
District 5
District 6
and its baranggay as well.

saving in database

while im saving in database, the data that is saved is a code, not the actual name of the data, how do save it to the name of the data?

Initialize Values

Hey bro, Is it possible to put “- Select Region -“ followed by the Region name? I am encountering a little problem like in Region, its automatically selects “ARMM” but when I click it, Provinces under “ARMM” won’t populate unless you select the next one and reselect again the “ARMM”.

Thanks in advance.

I have a question about option value

How can I change the value of it's option to name?

build_options(params){
var shtml = "";

			for(var i=0; i<params.data.length;i++){
				shtml += '<option value="' + params.data[i].id + '">';
				shtml +=  params.data[i].name ;
				shtml += '</option>';
			}

			return shtml
		}

this code

I am changing the params data to name but when I am changing it. it did not display the other data in select type.

Auto populate region and province

Is there a way to auto populate region and province?
In City, I want to start with the pre-select Province which is Pampanga.

but when I add the code

`var my_handlers = {

			fill_provinces:  function(){

				 var region_code = $(this).val();
				 $('#province-selector').ph_locations('fetch_list', [{"region_code": "03"}]);
				 
			},

			fill_cities: function(){

				 var province_code = $(this).val();
				 $('#city-selector').ph_locations( 'fetch_list', [{"province_code": "0354"}]);
			},


			fill_barangays: function(){

				 var city_code = $(this).val();
				 $('#barangay-selector').ph_locations('fetch_list', [{"city_code": "035401"}]);
			}
	  };`

it's not populating the record, its still showing all records

cost issue

Hi Guys,

this plugin requires a rest api https://ph-locations-api.buonzz.com/
the cost of running the server is around $20/month.
I have been trying to keep up the server for the last several years, but after 3 years, its not sustainable anymore.
thus, Im shutting down the server...

what does that mean to you:

  • if you are using this plugin, you might need to start considering to self-host the API.
  • provision a mysql server that the api can use.

I've open-sourced the api here : https://github.com/buonzz/ph-locations-api
its something that can be deployed in heroku, if you don't have your own server( or ask your client to host it)
see https://docs.adonisjs.com/cookbooks/deploy-to-heroku

you can find the sql dump in here: https://f001.backblazeb2.com/file/buonzz-assets/phlocations.sql

apologies for the inconvinience this caused.

thank you all

Select tag

Bro how can i put optgroup in select tag .
thank you bro

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.